summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2009-09-27 07:17:35 +0800
committerkwm <kwm@df743ca5-7f9a-e211-a948-0013205c9059>2009-09-27 07:17:35 +0800
commit0912893f69c8d9f5c8b1fc486dfcfaa67f0f7efb (patch)
tree2449602d11c62ae9287e66970a9f365698152711
parent77f8818a9bc10694072e9122ab3f8ae0bc2f0959 (diff)
downloadmarcuscom-ports-0912893f69c8d9f5c8b1fc486dfcfaa67f0f7efb.tar
marcuscom-ports-0912893f69c8d9f5c8b1fc486dfcfaa67f0f7efb.tar.gz
marcuscom-ports-0912893f69c8d9f5c8b1fc486dfcfaa67f0f7efb.tar.bz2
marcuscom-ports-0912893f69c8d9f5c8b1fc486dfcfaa67f0f7efb.tar.lz
marcuscom-ports-0912893f69c8d9f5c8b1fc486dfcfaa67f0f7efb.tar.xz
marcuscom-ports-0912893f69c8d9f5c8b1fc486dfcfaa67f0f7efb.tar.zst
marcuscom-ports-0912893f69c8d9f5c8b1fc486dfcfaa67f0f7efb.zip
Fix build with new gtk.
Submitted by: pointyhat exp-run git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@13043 df743ca5-7f9a-e211-a948-0013205c9059
-rw-r--r--cad/geda-gattrib/Makefile52
-rw-r--r--cad/geda-gattrib/distinfo3
-rw-r--r--cad/geda-gattrib/files/patch-icon-theme-installer17
-rw-r--r--cad/geda-gattrib/pkg-descr3
-rw-r--r--cad/geda-gattrib/pkg-plist24
5 files changed, 99 insertions, 0 deletions
diff --git a/cad/geda-gattrib/Makefile b/cad/geda-gattrib/Makefile
new file mode 100644
index 000000000..46362988a
--- /dev/null
+++ b/cad/geda-gattrib/Makefile
@@ -0,0 +1,52 @@
+# New ports collection makefile for: geda-gattrib
+# Date created: 26 June 2006
+# Whom: Stanislav Sedov <ssedov@mbsd.msk.ru>
+#
+# $FreeBSD: ports/cad/geda-gattrib/Makefile,v 1.12 2009/07/31 13:49:20 dinoex Exp $
+#
+
+PORTNAME= gattrib
+PORTVERSION= 1.4.3
+PORTREVISION= 2
+PORTEPOCH= 1
+CATEGORIES= cad
+MASTER_SITES= ftp://ftp.geda.seul.org/pub/geda/release/v1.4/${PORTVERSION}/ \
+ http://geda.seul.org/release/v1.4/${PORTVERSION}/
+PKGNAMEPREFIX= geda-
+DISTNAME= ${PKGNAMEPREFIX}${PORTNAME}-${PORTVERSION}
+
+MAINTAINER= stas@FreeBSD.org
+COMMENT= The gEDA's attribute editor
+
+RUN_DEPENDS= ${LOCALBASE}/share/geda/sym:${PORTSDIR}/cad/geda-symbols
+LIB_DEPENDS= geda.33:${PORTSDIR}/cad/libgeda
+
+DATADIR= ${PREFIX}/share/geda
+DOCSDIR= ${PREFIX}/share/doc/geda
+
+GNU_CONFIGURE= yes
+USE_GNOME= gtk20 glib20
+USE_GMAKE= yes
+INSTALLS_ICONS= yes
+CONFIGURE_ARGS= --with-docdir="${DOCSDIR}" --disable-update-mime-database \
+ --disable-update-desktop-database
+CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
+ LDFLAGS="-L${LOCALBASE}/lib"
+
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
+
+post-patch:
+ @${REINPLACE_CMD} -E \
+ -e "s,^(DATADIR[[:space:]]*=[[:space:]]*)gEDA,\1geda," \
+ ${WRKSRC}/configure
+ @${REINPLACE_CMD} -e 's|>n_bytes|>x_n_bytes|g' \
+ -e 's|>text_size|>x_text_size|g' \
+ ${WRKSRC}/src/gtkitementry_2_2.c
+
+.include <bsd.port.mk>
diff --git a/cad/geda-gattrib/distinfo b/cad/geda-gattrib/distinfo
new file mode 100644
index 000000000..3e713c6e6
--- /dev/null
+++ b/cad/geda-gattrib/distinfo
@@ -0,0 +1,3 @@
+MD5 (geda-gattrib-1.4.3.tar.gz) = e1f68401e7ca5fff16292358f0dfd553
+SHA256 (geda-gattrib-1.4.3.tar.gz) = 5eb48772d374dad446bfcd69990231fa6c6b52ba9b30048991632557512a7565
+SIZE (geda-gattrib-1.4.3.tar.gz) = 326641
diff --git a/cad/geda-gattrib/files/patch-icon-theme-installer b/cad/geda-gattrib/files/patch-icon-theme-installer
new file mode 100644
index 000000000..05a9bbec7
--- /dev/null
+++ b/cad/geda-gattrib/files/patch-icon-theme-installer
@@ -0,0 +1,17 @@
+--- icon-theme-installer.orig 2009-01-28 18:58:56.000000000 +0100
++++ icon-theme-installer 2009-01-28 18:59:24.000000000 +0100
+@@ -108,10 +108,10 @@
+ exit 1
+ fi
+
+-if test ! -x `echo "$INSTALL_DATA_EXEC" | cut -f1 -d' '`; then
+- echo "Cannot find '$INSTALL_DATA_EXEC'; You probably want to pass -x \$(INSTALL_DATA)"
+- exit 1
+-fi
++#if test ! -x `echo "$INSTALL_DATA_EXEC" | cut -f1 -d' '`; then
++# echo "Cannot find '$INSTALL_DATA_EXEC'; You probably want to pass -x \$(INSTALL_DATA)"
++# exit 1
++#fi
+
+ if test -z "$SRC_DIR"; then
+ SRC_DIR=.
diff --git a/cad/geda-gattrib/pkg-descr b/cad/geda-gattrib/pkg-descr
new file mode 100644
index 000000000..6e183204d
--- /dev/null
+++ b/cad/geda-gattrib/pkg-descr
@@ -0,0 +1,3 @@
+Gattrib is gEDA's attribute editor.
+
+WWW: http://www.geda.seul.org
diff --git a/cad/geda-gattrib/pkg-plist b/cad/geda-gattrib/pkg-plist
new file mode 100644
index 000000000..2ed3b3caf
--- /dev/null
+++ b/cad/geda-gattrib/pkg-plist
@@ -0,0 +1,24 @@
+bin/gattrib
+%%NLS%%lib/locale/de_DE/LC_MESSAGES/geda-gattrib.mo
+%%NLS%%lib/locale/es_ES/LC_MESSAGES/geda-gattrib.mo
+%%NLS%%lib/locale/nl_NL/LC_MESSAGES/geda-gattrib.mo
+share/applications/geda-gattrib.desktop
+%%DATADIR%%/gattrib-menus.xml
+%%DATADIR%%/system-gattribrc
+share/icons/hicolor/48x48/apps/geda-gattrib-48.png
+share/icons/hicolor/scalable/apps/geda-gattrib.svg
+@dirrmtry share/icons/hicolor/scalable/apps
+@dirrmtry share/icons/hicolor/scalable
+@dirrmtry share/icons/hicolor/48x48/apps
+@dirrmtry share/icons/hicolor/48x48
+@dirrmtry share/icons/hicolor
+@dirrmtry share/icons
+@dirrmtry %%DATADIR%%
+@dirrmtry share/applications
+%%NLS%%@dirrmtry lib/locale/nl_NL/LC_MESSAGES
+%%NLS%%@dirrmtry lib/locale/nl_NL
+%%NLS%%@dirrmtry lib/locale/es_ES/LC_MESSAGES
+%%NLS%%@dirrmtry lib/locale/es_ES
+%%NLS%%@dirrmtry lib/locale/de_DE/LC_MESSAGES
+%%NLS%%@dirrmtry lib/locale/de_DE
+%%NLS%%@dirrmtry lib/locale