aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2015-12-20 23:28:51 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2015-12-20 23:28:51 +0800
commit21554338418ccaa15fbe5b2ecb707b4980b83f64 (patch)
tree0777cc603fb704b0c102ffab665c0c82a691c5f3 /audio
parentf6a3ef97139a9050ecf4a05e868dc80cb507a08d (diff)
downloadfreebsd-ports-gnome-21554338418ccaa15fbe5b2ecb707b4980b83f64.tar.gz
freebsd-ports-gnome-21554338418ccaa15fbe5b2ecb707b4980b83f64.tar.zst
freebsd-ports-gnome-21554338418ccaa15fbe5b2ecb707b4980b83f64.zip
- Add LICENSE_FILE
- Switch to USES=localbase - Simplify installation - Switch to options helpers
Diffstat (limited to 'audio')
-rw-r--r--audio/mp3stat/Makefile36
1 files changed, 18 insertions, 18 deletions
diff --git a/audio/mp3stat/Makefile b/audio/mp3stat/Makefile
index 8ecadfb579d0..2d0fa83d8671 100644
--- a/audio/mp3stat/Makefile
+++ b/audio/mp3stat/Makefile
@@ -15,18 +15,15 @@ COMMENT= Read information about mp3s and oggs bitstream
BROKEN= unfetchable
LICENSE= GPLv2
+LICENSE_FILE= ${WRKSRC}/COPYING
-OPTIONS_DEFINE= VORBIS DOCS
-OPTIONS_DEFAULT= VORBIS
-
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
-
-USES= dos2unix gmake pkgconfig
+USES= dos2unix gmake localbase pkgconfig
DOS2UNIX_FILES= ui/console/cli.cpp
USE_GNOME= gtk20
-CXXFLAGS+= -I${LOCALBASE}/include
-LDFLAGS+= -L${LOCALBASE}/lib -Wl,--rpath,${LOCALBASE}/lib
+LDFLAGS+= -Wl,--rpath,${LOCALBASE}/lib
+
+WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
PORTDOCS= README
PLIST_FILES= bin/mp3stat \
@@ -34,6 +31,9 @@ PLIST_FILES= bin/mp3stat \
lib/mp3stat/ui_gtk2.so \
lib/mp3stat/ui_console.so
+OPTIONS_DEFINE= VORBIS DOCS
+OPTIONS_DEFAULT= VORBIS
+
VORBIS_LIB_DEPENDS= libvorbis.so:${PORTSDIR}/audio/libvorbis
VORBIS_PLIST_FILES= lib/mp3stat/input_vorb.so
VORBIS_MAKE_ARGS_OFF= VORBIS=""
@@ -48,18 +48,18 @@ post-patch:
s|^CXX|#CXX|g'
do-install:
- (cd ${WRKSRC} && ${INSTALL_PROGRAM} mp3stat ${STAGEDIR}${PREFIX}/bin)
+ ${INSTALL_PROGRAM} ${WRKSRC}/mp3stat ${STAGEDIR}${PREFIX}/bin
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/mp3stat
- (cd ${WRKSRC}/ui/gtk && ${INSTALL_LIB} ui_gtk2.so \
- ${STAGEDIR}${PREFIX}/lib/mp3stat)
- (cd ${WRKSRC}/ui/console && ${INSTALL_LIB} ui_console.so \
- ${STAGEDIR}${PREFIX}/lib/mp3stat)
- (cd ${WRKSRC}/input/mp3 && ${INSTALL_LIB} input_mp3.so \
- ${STAGEDIR}${PREFIX}/lib/mp3stat)
+ ${INSTALL_LIB} ${WRKSRC}/ui/gtk/ui_gtk2.so ${STAGEDIR}${PREFIX}/lib/mp3stat
+ ${INSTALL_LIB} ${WRKSRC}/ui/console/ui_console.so ${STAGEDIR}${PREFIX}/lib/mp3stat
+ ${INSTALL_LIB} ${WRKSRC}/input/mp3/input_mp3.so ${STAGEDIR}${PREFIX}/lib/mp3stat
+
+do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
- (cd ${WRKSRC} && ${INSTALL_DATA} README ${STAGEDIR}${DOCSDIR})
+ ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
+
do-install-VORBIS-on:
- (cd ${WRKSRC}/input/vorbis && ${INSTALL_LIB} input_vorb.so \
- ${STAGEDIR}${PREFIX}/lib/mp3stat)
+ ${INSTALL_LIB} ${WRKSRC}/input/vorbis/input_vorb.so \
+ ${STAGEDIR}${PREFIX}/lib/mp3stat
.include <bsd.port.mk>