summaryrefslogtreecommitdiff
path: root/graphics/libggi/Makefile
blob: 6f434e216a29936d907aa9e839c88d83adfd9d04 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# $NetBSD: Makefile,v 1.10 2001/02/05 09:00:58 tron Exp $
#

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/

BUILD_DEPENDS+=	${LOCALBASE}/bin/autoconf:../../devel/autoconf
DEPENDS+=	ncurses>=4.2:../../devel/ncurses
DEPENDS+=	libgii-0.6:../libgii

GNU_CONFIGURE=	YES
CONFIGURE_ARGS+=--disable-debug \
		--with-x \
		--with-extra-includes=${LOCALBASE}/include \
		--with-extra-libs="${X11BASE}/lib -Wl,-R${X11BASE}/lib"

PLIST_SRC=	${WRKDIR}/PLIST

pre-configure:
	cd ${WRKSRC}; autoconf

post-configure:
	cd ${WRKSRC}; \
	[ -f configure.BAK ] || ${CP} configure configure.BAK; \
	${SED} \
		-e '/lib/s@-L\([a-zA-Z$/_]*\)@-Wl,-R\1 -L\1@g' \
		<configure.BAK >configure
	@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

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"