aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbland <bland@FreeBSD.org>2006-08-29 16:39:29 +0800
committerbland <bland@FreeBSD.org>2006-08-29 16:39:29 +0800
commit15867164f138511dda8f6efadf28ed0f3e9bcf69 (patch)
tree952ed7ea42b37dc823df773229fc0d74952c8db3
parent66284f45443f2f7ababde6046e6ffc9c3ccff598 (diff)
downloadfreebsd-ports-gnome-15867164f138511dda8f6efadf28ed0f3e9bcf69.tar.gz
freebsd-ports-gnome-15867164f138511dda8f6efadf28ed0f3e9bcf69.tar.zst
freebsd-ports-gnome-15867164f138511dda8f6efadf28ed0f3e9bcf69.zip
- Optionalize AA-lib.
- s/INSTALLS_SHLIB/USE_LDCONFIG/.
-rw-r--r--devel/sdl12/Makefile13
1 files changed, 9 insertions, 4 deletions
diff --git a/devel/sdl12/Makefile b/devel/sdl12/Makefile
index f9b2444d338d..ad1e6c45d95b 100644
--- a/devel/sdl12/Makefile
+++ b/devel/sdl12/Makefile
@@ -16,17 +16,15 @@ DISTNAME= SDL-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Cross-platform multi-media development API
-LIB_DEPENDS= aa.1:${PORTSDIR}/graphics/aalib
BUILD_DEPENDS= nasm:${PORTSDIR}/devel/nasm
-INSTALLS_SHLIB= yes
+USE_LDCONFIG= yes
GNU_CONFIGURE= yes
WANT_GNOME= yes
CONFIGURE_ENV= NASM="${LOCALBASE}/bin/nasm" \
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}" \
LDFLAGS="${LDFLAGS}"
-CONFIGURE_ARGS= --enable-video-aalib
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
CFLAGS+= ${PTHREAD_CFLAGS} -I${LOCALBASE}/include
@@ -44,7 +42,8 @@ PORTDOCS= *
.endif
OPTIONS= NAS "Include support for the Network Audio System" Off \
- GL "Include support for OpenGL" On
+ GL "Include support for OpenGL" On \
+ AALIB "Include support for AA-lib" On
.include <bsd.port.pre.mk>
@@ -69,6 +68,12 @@ CONFIGURE_ARGS+=--disable-video-opengl
USE_GL= yes
CONFIGURE_ARGS+=--enable-video-opengl
.endif
+.if defined(WITHOUT_AALIB)
+CONFIGURE_ARGS+=--disable-video-aalib
+.else
+LIB_DEPENDS+= aa.1:${PORTSDIR}/graphics/aalib
+CONFIGURE_ARGS+=--enable-video-aalib
+.endif
.if exists(/usr/include/libusbhid.h)
CONFIGURE_ENV+= USB_LIBS=-lusbhid
CFLAGS+= -DHAVE_LIBUSBHID_H