Lines 1-32
Link Here
|
1 |
# New ports collection makefile for: libggi |
1 |
# Created by: mwest@uct.ac.za |
2 |
# Date created: 4 January 2000 |
|
|
3 |
# Whom: mwest@uct.ac.za |
4 |
# |
5 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
6 |
# |
|
|
7 |
|
3 |
|
8 |
PORTNAME= libggi |
4 |
PORTNAME= libggi |
9 |
PORTVERSION= 2.2.2 |
5 |
PORTVERSION= 2.2.2 |
10 |
PORTREVISION= 3 |
6 |
PORTREVISION= 3 |
11 |
PORTEPOCH= 1 |
7 |
PORTEPOCH= 1 |
12 |
CATEGORIES= graphics devel |
8 |
CATEGORIES= graphics devel |
13 |
MASTER_SITES= http://www.ggi-project.org/ftp/ggi/v2.2/ \ |
9 |
MASTER_SITES= SF/ggi/ggi-core/${PORTNAME}-${PORTVERSION} |
14 |
SF/ggi/ggi-core/${PORTNAME}-${PORTVERSION} |
|
|
15 |
|
16 |
DISTNAME= ${PORTNAME}-${PORTVERSION}.src |
10 |
DISTNAME= ${PORTNAME}-${PORTVERSION}.src |
17 |
|
11 |
|
18 |
MAINTAINER= antoine.brodin@laposte.net |
12 |
MAINTAINER= antoine@FreeBSD.org |
19 |
COMMENT= A flexible drawing library |
13 |
COMMENT= Flexible drawing library |
20 |
|
14 |
|
21 |
LIB_DEPENDS= gii.1:${PORTSDIR}/devel/libgii |
15 |
LICENSE= MIT |
22 |
|
16 |
|
|
|
17 |
LIB_DEPENDS= gii:${PORTSDIR}/devel/libgii |
18 |
|
23 |
USE_BZIP2= yes |
19 |
USE_BZIP2= yes |
24 |
USE_LDCONFIG= yes |
20 |
USE_LDCONFIG= yes |
25 |
|
21 |
|
26 |
GNU_CONFIGURE= yes |
22 |
GNU_CONFIGURE= yes |
27 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
23 |
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} |
28 |
|
24 |
|
29 |
CPPFLAGS+= ${PTHREAD_CFLAGS} |
|
|
30 |
LDFLAGS+= ${PTHREAD_LIBS} |
25 |
LDFLAGS+= ${PTHREAD_LIBS} |
31 |
|
26 |
|
32 |
MAN1= cube3d.1 ggi-demo.1 ggiteleserver.1 monitest.1 |
27 |
MAN1= cube3d.1 ggi-demo.1 ggiteleserver.1 monitest.1 |
Lines 123-160
Link Here
|
123 |
|
118 |
|
124 |
CONFIGURE_ARGS= --disable-directfb |
119 |
CONFIGURE_ARGS= --disable-directfb |
125 |
|
120 |
|
|
|
121 |
OPTIONS_DEFINE= AALIB SVGALIB X11 |
122 |
OPTIONS_DEFAULT=X11 |
123 |
|
124 |
.include <bsd.port.options.mk> |
125 |
|
126 |
.if exists(/usr/include/dev/kgi/kgi.h) |
126 |
.if exists(/usr/include/dev/kgi/kgi.h) |
127 |
CONFIGURE_ARGS+= --enable-kgi --with-extra-includes=/usr/include/dev |
127 |
CONFIGURE_ARGS+=--enable-kgi --with-extra-includes=/usr/include/dev |
128 |
.endif |
128 |
.endif |
129 |
|
129 |
|
130 |
.if !defined(WITHOUT_X11) |
130 |
.if ${PORT_OPTIONS:MX11} |
|
|
131 |
CONFIGURE_ARGS+=--enable-x --with-x |
131 |
USE_XORG= x11 xxf86dga xxf86vm ice sm xau xext |
132 |
USE_XORG= x11 xxf86dga xxf86vm ice sm xau xext |
132 |
PLIST_SUB+= WITH_X="" |
133 |
PLIST_SUB+= WITH_X="" |
133 |
.else |
134 |
.else |
134 |
CONFIGURE_ARGS+= --disable-x --disable-dga |
135 |
CONFIGURE_ARGS+=--disable-x --without-x |
135 |
PLIST_SUB+= WITH_X="@comment " |
136 |
PLIST_SUB+= WITH_X="@comment " |
136 |
.endif |
137 |
.endif |
137 |
|
138 |
|
138 |
.include <bsd.port.pre.mk> |
139 |
.if exists(/usr/include/vgl.h) && (${ARCH} == "i386" || ${ARCH} == "amd64") |
139 |
|
140 |
CONFIGURE_ARGS+=--enable-vgl |
140 |
.if !exists(/usr/include/vgl.h) || ${ARCH} != "i386" |
141 |
PLIST_SUB+= WITH_VGL="" |
141 |
CONFIGURE_ARGS+= --disable-vgl |
142 |
.else |
|
|
143 |
CONFIGURE_ARGS+=--disable-vgl |
142 |
PLIST_SUB+= WITH_VGL="@comment " |
144 |
PLIST_SUB+= WITH_VGL="@comment " |
143 |
.else |
|
|
144 |
PLIST_SUB+= WITH_VGL="" |
145 |
.endif |
145 |
.endif |
146 |
|
146 |
|
147 |
.if defined(WITH_AALIB) || exists(${LOCALBASE}/include/aalib.h) |
147 |
.if ${PORT_OPTIONS:MAALIB} |
148 |
LIB_DEPENDS+= aa.1:${PORTSDIR}/graphics/aalib |
148 |
CONFIGURE_ARGS+=--enable-aa |
|
|
149 |
LIB_DEPENDS+= aa:${PORTSDIR}/graphics/aalib |
149 |
PLIST_SUB+= WITH_AALIB="" |
150 |
PLIST_SUB+= WITH_AALIB="" |
150 |
.else |
151 |
.else |
|
|
152 |
CONFIGURE_ARGS+=--disable-aa |
151 |
PLIST_SUB+= WITH_AALIB="@comment " |
153 |
PLIST_SUB+= WITH_AALIB="@comment " |
152 |
.endif |
154 |
.endif |
153 |
|
155 |
|
154 |
.if defined(WITH_SVGALIB) || exists(${LOCALBASE}/include/vga.h) |
156 |
.if ${PORT_OPTIONS:MSVGALIB} |
155 |
LIB_DEPENDS+= vga.1:${PORTSDIR}/graphics/svgalib |
157 |
CONFIGURE_ARGS+=--enable-vgagl --enable-svga |
|
|
158 |
LIB_DEPENDS+= vga:${PORTSDIR}/graphics/svgalib |
156 |
PLIST_SUB+= WITH_SVGALIB="" |
159 |
PLIST_SUB+= WITH_SVGALIB="" |
157 |
.else |
160 |
.else |
|
|
161 |
CONFIGURE_ARGS+=--disable-vgagl --disable-svga |
158 |
PLIST_SUB+= WITH_SVGALIB="@comment " |
162 |
PLIST_SUB+= WITH_SVGALIB="@comment " |
159 |
.endif |
163 |
.endif |
160 |
|
164 |
|
Lines 164-167
Link Here
|
164 |
${TOUCH} ${PREFIX}/lib/ggi/helper/.keep |
168 |
${TOUCH} ${PREFIX}/lib/ggi/helper/.keep |
165 |
${INSTALL_DATA} ${WRKSRC}/libggi.conf ${PREFIX}/etc/ggi/libggi.conf.dist |
169 |
${INSTALL_DATA} ${WRKSRC}/libggi.conf ${PREFIX}/etc/ggi/libggi.conf.dist |
166 |
|
170 |
|
167 |
.include <bsd.port.post.mk> |
171 |
.include <bsd.port.mk> |