[Midnightbsd-cvs] mports: Makefile: cleanup to use options.
ctriv at midnightbsd.org
ctriv at midnightbsd.org
Thu Oct 30 12:19:43 EDT 2008
Log Message:
-----------
cleanup to use options.
Modified Files:
--------------
mports/multimedia/libdv:
Makefile (r1.4 -> r1.5)
-------------- next part --------------
Index: Makefile
===================================================================
RCS file: /home/cvs/mports/multimedia/libdv/Makefile,v
retrieving revision 1.4
retrieving revision 1.5
diff -L multimedia/libdv/Makefile -L multimedia/libdv/Makefile -u -r1.4 -r1.5
--- multimedia/libdv/Makefile
+++ multimedia/libdv/Makefile
@@ -37,6 +37,15 @@
PORTDOCS= AUTHORS COPYING COPYRIGHT ChangeLog NEWS README \
README.dvconnect README.encoder TODO
+OPTIONS= SDL "SDL Support" on
+
+.include <bsd.mport.options.mk>
+
+.ifndef(WITHOUT_SDL)
+USE_SDL= sdl
+CONFIGURE_ARGS+= --enable-sdl
+.endif
+
.include <bsd.port.pre.mk>
.if ${HAVE_GNOME:Mgtk12}!=""
@@ -53,17 +62,6 @@
# Therefore, make sure we have AT LEAST -O and avoid -O0
CONFIGURE_ENV+= CFLAGS="-O ${CFLAGS:N-O0}"
-.ifndef(WITHOUT_SDL)
-USE_SDL= sdl
-CONFIGURE_ARGS+= --enable-sdl
-.endif
-
-pre-everything::
-.ifndef(WITHOUT_SDL)
- @${ECHO_MSG} '===>'
- @${ECHO_MSG} '===> Define WITHOUT_SDL to disable SDL support'
- @${ECHO_MSG} '===>'
-.endif
post-patch:
@${REINPLACE_CMD} -E \
More information about the Midnightbsd-cvs
mailing list