aboutsummaryrefslogtreecommitdiff
path: root/audio/mp3stat/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'audio/mp3stat/Makefile')
-rw-r--r--audio/mp3stat/Makefile12
1 files changed, 5 insertions, 7 deletions
diff --git a/audio/mp3stat/Makefile b/audio/mp3stat/Makefile
index 2de62d19dde5..706b2bff4421 100644
--- a/audio/mp3stat/Makefile
+++ b/audio/mp3stat/Makefile
@@ -24,6 +24,10 @@ MAKE_ARGS= CXX="${CXX}" CXXFLAGS="${CXXFLAGS}"
PORTDOCS= README
PLIST_FILES= bin/mp3stat
+OPTIONS= VORBIS "Ogg/Vorbis support" on
+
+.include <bsd.port.pre.mk>
+
.if defined(WITHOUT_VORBIS)
MAKE_ARGS+= VORBIS=""
.else
@@ -31,12 +35,6 @@ LIB_DEPENDS+= vorbis.3:${PORTSDIR}/audio/libvorbis
CXXFLAGS+= -I${LOCALBASE}/include -L${LOCALBASE}/lib
.endif
-pre-everything::
- @${ECHO_MSG}
- @${ECHO_MSG} "If you want to compile without Ogg/Vorbis support,"
- @${ECHO_MSG} "hit Ctrl-C right now and use \"make WITHOUT_VORBIS=yes\""
- @${ECHO_MSG}
-
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/mp3stat ${PREFIX}/bin
.if !defined(NOPORTDOCS)
@@ -44,4 +42,4 @@ do-install:
${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
.endif
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>