2001-08-27 16:35:04 +02:00
|
|
|
# $NetBSD: Makefile,v 1.13 2001/08/27 14:35:09 tron Exp $
|
1999-07-24 04:31:57 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
DISTNAME= libggi-2.0b2.1
|
|
|
|
CATEGORIES= graphics
|
|
|
|
MASTER_SITES= ftp://ftp.ggi-project.org/pub/ggi/ggi/current/
|
|
|
|
|
|
|
|
MAINTAINER= hubertf@netbsd.org
|
|
|
|
HOMEPAGE= http://www.ggi-project.org/
|
2001-02-16 16:22:13 +01:00
|
|
|
COMMENT= General Graphics Interface library is a flexible drawing library
|
1999-07-24 04:31:57 +02:00
|
|
|
|
2001-08-27 16:35:04 +02:00
|
|
|
BUILD_DEPENDS+= autoconf>=2.13:../../devel/autoconf
|
2000-01-15 19:46:22 +01:00
|
|
|
DEPENDS+= ncurses>=4.2:../../devel/ncurses
|
2000-04-16 18:54:54 +02:00
|
|
|
DEPENDS+= libgii-0.6:../libgii
|
1999-07-27 15:14:10 +02:00
|
|
|
|
1999-07-24 04:31:57 +02:00
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
CONFIGURE_ARGS+=--disable-debug \
|
|
|
|
--with-x \
|
2000-06-27 05:18:03 +02:00
|
|
|
--with-extra-includes=${LOCALBASE}/include \
|
2001-01-16 00:01:34 +01:00
|
|
|
--with-extra-libs="${X11BASE}/lib -Wl,-R${X11BASE}/lib"
|
1999-07-24 04:31:57 +02:00
|
|
|
|
2000-12-27 05:29:10 +01:00
|
|
|
PLIST_SRC= ${WRKDIR}/PLIST
|
|
|
|
|
2000-04-16 18:54:54 +02:00
|
|
|
pre-configure:
|
|
|
|
cd ${WRKSRC}; autoconf
|
|
|
|
|
2000-06-27 05:18:03 +02:00
|
|
|
post-configure:
|
|
|
|
cd ${WRKSRC}; \
|
2000-09-03 12:14:39 +02:00
|
|
|
[ -f configure.BAK ] || ${CP} configure configure.BAK; \
|
2000-06-27 05:18:03 +02:00
|
|
|
${SED} \
|
|
|
|
-e '/lib/s@-L\([a-zA-Z$/_]*\)@-Wl,-R\1 -L\1@g' \
|
|
|
|
<configure.BAK >configure
|
2000-12-27 05:29:10 +01:00
|
|
|
@if [ -f ${X11BASE}/include/X11/extensions/xf86dga.h ]; then \
|
|
|
|
${CP} ${PKGDIR}/PLIST ${PLIST_SRC}; \
|
|
|
|
else \
|
|
|
|
${GREP} -v lib.ggi.display.xf86dga ${PKGDIR}/PLIST \
|
|
|
|
> ${PLIST_SRC}; \
|
|
|
|
fi
|
2000-06-27 05:18:03 +02:00
|
|
|
|
1999-07-24 04:31:57 +02:00
|
|
|
post-install:
|
|
|
|
cd ${PREFIX}/man/man3 ; for i in *.3ggi ; do \
|
|
|
|
${MV} $$i `basename $$i .3ggi`.3 ; \
|
|
|
|
done
|
|
|
|
cd ${PREFIX}/man/man7 ; for i in *.7ggi ; do \
|
|
|
|
${MV} $$i `basename $$i .7ggi`.7 ; \
|
|
|
|
done
|
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|