diff options
author | bapt <bapt@FreeBSD.org> | 2014-04-29 01:28:06 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2014-04-29 01:28:06 +0800 |
commit | 80ea0d9e4dee9bcfbb9d72c9586dc648018e48e4 (patch) | |
tree | 59b57569acde001b25cd9a6a8a525e6b6245bf80 /audio | |
parent | 7055aa7087759e6cfb4069c166280d87e588a244 (diff) | |
download | freebsd-ports-gnome-80ea0d9e4dee9bcfbb9d72c9586dc648018e48e4.tar.gz freebsd-ports-gnome-80ea0d9e4dee9bcfbb9d72c9586dc648018e48e4.tar.zst freebsd-ports-gnome-80ea0d9e4dee9bcfbb9d72c9586dc648018e48e4.zip |
Support stage
Strip binaries
Use options sub
Add options definition
Diffstat (limited to 'audio')
-rw-r--r-- | audio/lxmusic/Makefile | 30 |
1 files changed, 9 insertions, 21 deletions
diff --git a/audio/lxmusic/Makefile b/audio/lxmusic/Makefile index 5273c3d437ec..4e73b99feaa5 100644 --- a/audio/lxmusic/Makefile +++ b/audio/lxmusic/Makefile @@ -3,12 +3,15 @@ PORTNAME= lxmusic PORTVERSION= 0.4.5 +PORTREVISION= 1 CATEGORIES= audio MASTER_SITES= SF/ghostbsdproject/package/LXMusic/ MAINTAINER= ericturgeon@ghostbsd.org COMMENT= LXDE music player based on xmms2 +OPTIONS_DEFINE= DOCS NLS + LICENSE= MIT GPLv2 LICENSE_COMB= dual @@ -16,10 +19,10 @@ LIB_DEPENDS= libxmmsclient.so:${PORTSDIR}/audio/xmms2 \ libnotify.so:${PORTSDIR}/devel/libnotify USES= gmake desktop-file-utils pkgconfig -NO_STAGE= yes USE_GNOME= gtk20 GNU_CONFIGURE= yes INSTALLS_ICONS= yes +INSTALL_TARGET= install-strip CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} @@ -27,28 +30,13 @@ LDFLAGS+= -L${LOCALBASE}/lib ${PTHREAD_LIBS} PORTDOCS= AUTHORS README OPTIONS_DEFINE= DOCS NLS +OPTIONS_SUB= yes -.include <bsd.port.options.mk> - -.if ${PORT_OPTIONS:MNLS} -USES+= gettext -PLIST_SUB+= NLS="" -.else -CONFIGURE_ARGS+=--disable-nls -PLIST_SUB+= NLS="@comment " -.endif - -post-patch: -.if ! ${PORT_OPTIONS:MNLS} - @${REINPLACE_CMD} -e 's|data po|data|' \ - ${WRKSRC}/Makefile.in - -.endif +NLS_USES= gettext +NLS_CONFIGURE_ENABLE=nls post-install: -.if ${PORT_OPTIONS:MDOCS} - @${MKDIR} ${DOCSDIR} - ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR} -.endif + @${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR} .include <bsd.port.mk> |