Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 28 Apr 2014 17:28:07 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r352534 - head/audio/lxmusic
Message-ID:  <201404281728.s3SHS7Aj049684@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Mon Apr 28 17:28:06 2014
New Revision: 352534
URL: http://svnweb.freebsd.org/changeset/ports/352534
QAT: https://qat.redports.org/buildarchive/r352534/

Log:
  Support stage
  Strip binaries
  Use options sub
  Add options definition

Modified:
  head/audio/lxmusic/Makefile

Modified: head/audio/lxmusic/Makefile
==============================================================================
--- head/audio/lxmusic/Makefile	Mon Apr 28 17:28:02 2014	(r352533)
+++ head/audio/lxmusic/Makefile	Mon Apr 28 17:28:06 2014	(r352534)
@@ -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
 		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_L
 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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201404281728.s3SHS7Aj049684>