1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/graphics/libggi/Makefile
2013-10-04 20:51:45 +00:00

80 lines
1.8 KiB
Makefile

# Created by: mwest@uct.ac.za
# $FreeBSD$
PORTNAME= libggi
PORTVERSION= 2.2.2
PORTREVISION= 4
PORTEPOCH= 1
CATEGORIES= graphics devel
MASTER_SITES= SF/ggi/ggi-core/${PORTNAME}-${PORTVERSION}
DISTNAME= ${PORTNAME}-${PORTVERSION}.src
MAINTAINER= antoine@FreeBSD.org
COMMENT= Flexible drawing library
LICENSE= MIT
LIB_DEPENDS= gii:${PORTSDIR}/devel/libgii
USE_BZIP2= yes
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
LDFLAGS+= ${PTHREAD_LIBS}
CONFIGURE_ARGS= --disable-directfb
OPTIONS_DEFINE= AALIB SVGALIB X11
OPTIONS_DEFAULT=X11
.include <bsd.port.options.mk>
.if exists(/usr/include/dev/kgi/kgi.h)
CONFIGURE_ARGS+=--enable-kgi --with-extra-includes=/usr/include/dev
.endif
.if ${PORT_OPTIONS:MX11}
CONFIGURE_ARGS+=--enable-x --with-x
USE_XORG= x11 xxf86dga xxf86vm ice sm xau xext
PLIST_SUB+= WITH_X=""
.else
CONFIGURE_ARGS+=--disable-x --without-x
PLIST_SUB+= WITH_X="@comment "
.endif
.if exists(/usr/include/vgl.h) && (${ARCH} == "i386" || ${ARCH} == "amd64")
CONFIGURE_ARGS+=--enable-vgl
PLIST_SUB+= WITH_VGL=""
.else
CONFIGURE_ARGS+=--disable-vgl
PLIST_SUB+= WITH_VGL="@comment "
.endif
.if ${PORT_OPTIONS:MAALIB}
CONFIGURE_ARGS+=--enable-aa
LIB_DEPENDS+= aa:${PORTSDIR}/graphics/aalib
PLIST_SUB+= WITH_AALIB=""
.else
CONFIGURE_ARGS+=--disable-aa
PLIST_SUB+= WITH_AALIB="@comment "
.endif
.if ${PORT_OPTIONS:MSVGALIB}
CONFIGURE_ARGS+=--enable-vgagl --enable-svga
LIB_DEPENDS+= vga:${PORTSDIR}/graphics/svgalib
PLIST_SUB+= WITH_SVGALIB=""
.else
CONFIGURE_ARGS+=--disable-vgagl --disable-svga
PLIST_SUB+= WITH_SVGALIB="@comment "
.endif
post-install:
${TOUCH} ${STAGEDIR}${PREFIX}/lib/ggi/default/fbdev/.keep
${TOUCH} ${STAGEDIR}${PREFIX}/lib/ggi/default/kgi/.keep
${TOUCH} ${STAGEDIR}${PREFIX}/lib/ggi/helper/.keep
${INSTALL_DATA} ${WRKSRC}/libggi.conf ${STAGEDIR}${PREFIX}/etc/ggi/libggi.conf.dist
.include <bsd.port.mk>