aboutsummaryrefslogtreecommitdiff
path: root/cad/libgeda
diff options
context:
space:
mode:
authorStanislav Sedov <stas@FreeBSD.org>2009-02-21 11:43:23 +0000
committerStanislav Sedov <stas@FreeBSD.org>2009-02-21 11:43:23 +0000
commit98130c3c16717c3337634ac1e924b9dd4e3df27f (patch)
tree16a2733a669c0bbe164aa8b881df9d60a67de753 /cad/libgeda
parent5f6ba2a345062d46d2e16bd1d6c5854e528a096e (diff)
downloadports-98130c3c16717c3337634ac1e924b9dd4e3df27f.tar.gz
ports-98130c3c16717c3337634ac1e924b9dd4e3df27f.zip
Notes
Diffstat (limited to 'cad/libgeda')
-rw-r--r--cad/libgeda/Makefile9
-rw-r--r--cad/libgeda/pkg-plist16
2 files changed, 17 insertions, 8 deletions
diff --git a/cad/libgeda/Makefile b/cad/libgeda/Makefile
index ad59ce51d350..4a85ef4e85b4 100644
--- a/cad/libgeda/Makefile
+++ b/cad/libgeda/Makefile
@@ -8,6 +8,7 @@
PORTNAME= libgeda
PORTVERSION= 1.4.3
PORTREVISION= 0
+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}/
@@ -27,6 +28,14 @@ CONFIGURE_ARGS= --disable-update-mime-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," \
diff --git a/cad/libgeda/pkg-plist b/cad/libgeda/pkg-plist
index dabbfa9136d3..d369eae3c50c 100644
--- a/cad/libgeda/pkg-plist
+++ b/cad/libgeda/pkg-plist
@@ -35,10 +35,10 @@ share/icons/hicolor/48x48/mimetypes/application-x-geda-symbol-48.png
share/icons/hicolor/scalable/mimetypes/application-x-geda-gsch2pcb-project.svg
share/icons/hicolor/scalable/mimetypes/application-x-geda-schematic.svg
share/icons/hicolor/scalable/mimetypes/application-x-geda-symbol.svg
-share/locale/de_DE/LC_MESSAGES/libgeda33.mo
-share/locale/en_GB/LC_MESSAGES/libgeda33.mo
-share/locale/es_ES/LC_MESSAGES/libgeda33.mo
-share/locale/nl_NL/LC_MESSAGES/libgeda33.mo
+%%NLS%%share/locale/de_DE/LC_MESSAGES/libgeda33.mo
+%%NLS%%share/locale/en_GB/LC_MESSAGES/libgeda33.mo
+%%NLS%%share/locale/es_ES/LC_MESSAGES/libgeda33.mo
+%%NLS%%share/locale/nl_NL/LC_MESSAGES/libgeda33.mo
share/mime/packages/libgeda.xml
share/mimelnk/application/x-geda-gsch2pcb-project.desktop
share/mimelnk/application/x-geda-schematic.desktop
@@ -47,10 +47,10 @@ share/mimelnk/application/x-geda-symbol.desktop
@dirrmtry share/mimelnk
@dirrmtry share/mime/packages
@dirrmtry share/mime
-@dirrmtry share/locale/nl_NL/LC_MESSAGES
-@dirrmtry share/locale/nl_NL
-@dirrmtry share/locale/de_DE/LC_MESSAGES
-@dirrmtry share/locale/de_DE
+%%NLS%%@dirrmtry share/locale/nl_NL/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/nl_NL
+%%NLS%%@dirrmtry share/locale/de_DE/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/de_DE
@dirrmtry share/icons/hicolor/scalable/mimetypes
@dirrmtry share/icons/hicolor/scalable
@dirrmtry share/icons/hicolor/48x48/mimetypes