aboutsummaryrefslogtreecommitdiff
path: root/x11
diff options
context:
space:
mode:
authorWilliam Grzybowski <wg@FreeBSD.org>2013-07-04 12:40:41 +0000
committerWilliam Grzybowski <wg@FreeBSD.org>2013-07-04 12:40:41 +0000
commit4b6b8a198e6f6c940e0c8364ffd98de887fac530 (patch)
tree584aee2fdcff50578ac1452b3a9fabc81196c6ad /x11
parent4934a1218564c2f12decad2d1266e429a87ea89b (diff)
downloadports-4b6b8a198e6f6c940e0c8364ffd98de887fac530.tar.gz
ports-4b6b8a198e6f6c940e0c8364ffd98de887fac530.zip
Notes
Diffstat (limited to 'x11')
-rw-r--r--x11/lxrandr/Makefile36
-rw-r--r--x11/lxrandr/pkg-plist138
2 files changed, 98 insertions, 76 deletions
diff --git a/x11/lxrandr/Makefile b/x11/lxrandr/Makefile
index 42785b368392..f9069949a3a1 100644
--- a/x11/lxrandr/Makefile
+++ b/x11/lxrandr/Makefile
@@ -1,3 +1,4 @@
+# Created by: Eric Turgeon <ericturgeon.bsd@gmail.com>
# $FreeBSD$
PORTNAME= lxrandr
@@ -8,18 +9,41 @@ MASTER_SITES= SF/lxde/LXRandR%20%28monitor%20config%20tool%29/LXRandR%20${PORTVE
MAINTAINER= ericturgeon@ghostbsd.org
COMMENT= LXDE screen manager
+LICENSE= GPLv2
+
+USES= desktop-file-utils
USE_GNOME= gtk20
-USE_GMAKE= yes
+USE_XORG= xrandr
GNU_CONFIGURE= yes
-USES= gettext
+USE_GMAKE= yes
INSTALLS_ICONS= yes
-USE_XORG= xrandr
-CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
-LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS}
MAN1= lxrandr.1
+PORTDOCS= AUTHORS
+
+OPTIONS_DEFINE= DOCS NLS
+OPTIONS_SUB= yes
+
+NLS_USES= gettext
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MNLS}
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+.endif
+
+post-patch:
+.if ! ${PORT_OPTIONS:MNLS}
+ @${REINPLACE_CMD} -e 's|po man|man|' \
+ ${WRKSRC}/Makefile.in
+.endif
+
post-install:
- @-${LOCALBASE}/bin/update-desktop-database > /dev/null
+.if ${PORT_OPTIONS:MDOCS}
+ @${MKDIR} ${DOCSDIR}
+ ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
+.endif
.include <bsd.port.mk>
diff --git a/x11/lxrandr/pkg-plist b/x11/lxrandr/pkg-plist
index d880b8024625..bd312a2fa172 100644
--- a/x11/lxrandr/pkg-plist
+++ b/x11/lxrandr/pkg-plist
@@ -1,73 +1,71 @@
bin/lxrandr
share/applications/lxrandr.desktop
-share/locale/af/LC_MESSAGES/lxrandr.mo
-share/locale/ar/LC_MESSAGES/lxrandr.mo
-share/locale/ast/LC_MESSAGES/lxrandr.mo
-share/locale/be/LC_MESSAGES/lxrandr.mo
-share/locale/bg/LC_MESSAGES/lxrandr.mo
-share/locale/bn/LC_MESSAGES/lxrandr.mo
-share/locale/bn_IN/LC_MESSAGES/lxrandr.mo
-share/locale/ca/LC_MESSAGES/lxrandr.mo
-share/locale/cs/LC_MESSAGES/lxrandr.mo
-share/locale/da/LC_MESSAGES/lxrandr.mo
-share/locale/de/LC_MESSAGES/lxrandr.mo
-share/locale/el/LC_MESSAGES/lxrandr.mo
-share/locale/en_GB/LC_MESSAGES/lxrandr.mo
-share/locale/es/LC_MESSAGES/lxrandr.mo
-share/locale/es_VE/LC_MESSAGES/lxrandr.mo
-share/locale/et/LC_MESSAGES/lxrandr.mo
-share/locale/eu/LC_MESSAGES/lxrandr.mo
-share/locale/fa/LC_MESSAGES/lxrandr.mo
-share/locale/fi/LC_MESSAGES/lxrandr.mo
-share/locale/fo/LC_MESSAGES/lxrandr.mo
-share/locale/fr/LC_MESSAGES/lxrandr.mo
-share/locale/frp/LC_MESSAGES/lxrandr.mo
-share/locale/gl/LC_MESSAGES/lxrandr.mo
-share/locale/he/LC_MESSAGES/lxrandr.mo
-share/locale/hr/LC_MESSAGES/lxrandr.mo
-share/locale/hu/LC_MESSAGES/lxrandr.mo
-share/locale/id/LC_MESSAGES/lxrandr.mo
-share/locale/it/LC_MESSAGES/lxrandr.mo
-share/locale/ja/LC_MESSAGES/lxrandr.mo
-share/locale/ko/LC_MESSAGES/lxrandr.mo
-share/locale/lg/LC_MESSAGES/lxrandr.mo
-share/locale/lt/LC_MESSAGES/lxrandr.mo
-share/locale/ml/LC_MESSAGES/lxrandr.mo
-share/locale/ms/LC_MESSAGES/lxrandr.mo
-share/locale/nb/LC_MESSAGES/lxrandr.mo
-share/locale/nl/LC_MESSAGES/lxrandr.mo
-share/locale/nn/LC_MESSAGES/lxrandr.mo
-share/locale/pl/LC_MESSAGES/lxrandr.mo
-share/locale/ps/LC_MESSAGES/lxrandr.mo
-share/locale/pt/LC_MESSAGES/lxrandr.mo
-share/locale/pt_BR/LC_MESSAGES/lxrandr.mo
-share/locale/ro/LC_MESSAGES/lxrandr.mo
-share/locale/ru/LC_MESSAGES/lxrandr.mo
-share/locale/sk/LC_MESSAGES/lxrandr.mo
-share/locale/sl/LC_MESSAGES/lxrandr.mo
-share/locale/sr/LC_MESSAGES/lxrandr.mo
-share/locale/sr@latin/LC_MESSAGES/lxrandr.mo
-share/locale/sv/LC_MESSAGES/lxrandr.mo
-share/locale/te/LC_MESSAGES/lxrandr.mo
-share/locale/th/LC_MESSAGES/lxrandr.mo
-share/locale/tr/LC_MESSAGES/lxrandr.mo
-share/locale/tt_RU/LC_MESSAGES/lxrandr.mo
-share/locale/uk/LC_MESSAGES/lxrandr.mo
-share/locale/ur/LC_MESSAGES/lxrandr.mo
-share/locale/ur_PK/LC_MESSAGES/lxrandr.mo
-share/locale/vi/LC_MESSAGES/lxrandr.mo
-share/locale/zh_CN/LC_MESSAGES/lxrandr.mo
-share/locale/zh_TW/LC_MESSAGES/lxrandr.mo
-@dirrmtry share/locale/ur_PK/LC_MESSAGES
-@dirrmtry share/locale/ur_PK
-@dirrmtry share/locale/tt_RU/LC_MESSAGES
-@dirrmtry share/locale/tt_RU
-@dirrmtry share/locale/lg/LC_MESSAGES
-@dirrmtry share/locale/lg
-@dirrmtry share/locale/frp/LC_MESSAGES
-@dirrmtry share/locale/frp
-@dirrmtry share/locale/es_VE/LC_MESSAGES
-@dirrmtry share/locale/es_VE
+%%NLS%%share/locale/af/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/ar/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/ast/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/be/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/bg/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/bn/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/bn_IN/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/ca/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/da/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/de/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/el/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/en_GB/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/es/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/es_VE/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/et/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/eu/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/fa/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/fo/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/frp/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/gl/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/he/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/hr/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/id/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/it/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/ko/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/lg/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/lt/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/ml/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/ms/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/nb/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/nn/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/ps/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/pt/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/ro/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/sl/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/sr/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/sr@latin/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/te/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/th/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/tt_RU/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/ur/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/ur_PK/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/vi/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/lxrandr.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/lxrandr.mo
+%%NLS%%@dirrmtry share/locale/ur_PK/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/ur_PK
+%%NLS%%@dirrmtry share/locale/tt_RU/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/tt_RU
+%%NLS%%@dirrmtry share/locale/lg/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/lg
+%%NLS%%@dirrmtry share/locale/frp/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/frp
+%%NLS%%@dirrmtry share/locale/es_VE/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/es_VE
@dirrmtry share/applications
-@exec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true
-@unexec %%LOCALBASE%%/bin/update-desktop-database > /dev/null || /usr/bin/true