Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 14 Feb 2009 15:43:52 -0500
From:      Josh Carroll <josh.carroll@gmail.com>
To:        FreeBSD-gnats-submit@freebsd.org, freebsd-ports-bugs@freebsd.org
Subject:   Re: ports/131681: Add OPTIONS framework to gpac-libgpac port
Message-ID:  <8cb6106e0902141243h54b3f2a8v2c5c073748439bb7@mail.gmail.com>
In-Reply-To: <200902142010.n1EKA0B1011310@freefall.freebsd.org>
References:  <200902142000.n1EK0xmm041483@www.freebsd.org> <200902142010.n1EKA0B1011310@freefall.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Here is an updated patch which adds a LIB_DEPEND for the libGL port if
the OPENGL option is selected (which is the default).

Thanks,
Josh


--- Makefile.orig	2009-02-13 20:55:45.000000000 -0500
+++ Makefile	2009-02-14 15:41:15.000000000 -0500
@@ -27,9 +27,25 @@
 LIBVER=	1

 CONFIGURE_ARGS=	--cc="${CC}" \
-		--extra-cflags="${CFLAGS} ${PTHREAD_CFLAGS} -fPIC" \
+		--enable-pic \
+		--extra-cflags="${CFLAGS} ${PTHREAD_CFLAGS}" \
 		--extra-ldflags="${LDFLAGS} ${PTHREAD_LIBS}"

+OPTIONS=	OPENGL	"OpenGL support" on \
+			IPV6	"IPv6 support" on
+
+.include <bsd.port.pre.mk>
+
+.if defined(WITHOUT_OPENGL)
+CONFIGURE_ARGS+=	--disable-opengl
+.else
+LIB_DEPENDS+=	GL.1:${PORTSDIR}/graphics/libGL
+.endif
+
+.if defined(WITHOUT_IPV6)
+CONFIGURE_ARGS+=	--disable-ipv6
+.endif
+
 post-patch:
 	${CHMOD} +x ${WRKSRC}/configure

@@ -41,4 +57,4 @@
 	${LN} -sf libgpac.so.${LIBVER} ${PREFIX}/lib/libgpac.so
 	${INSTALL_DATA} ${INSTALL_WRKSRC}/libgpac_static.a ${PREFIX}/lib

-.include <bsd.port.mk>
+.include <bsd.port.post.mk>



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