ef732ddfb6
Use conditional comment for dga instead of second PLIST file.
56 lines
1.4 KiB
Makefile
56 lines
1.4 KiB
Makefile
# $NetBSD: Makefile,v 1.41 2006/04/20 16:28:54 joerg Exp $
|
|
#
|
|
|
|
DISTNAME= libggi-2.1.1.src
|
|
PKGNAME= ${DISTNAME:S/.src//}
|
|
PKGREVISION= 2
|
|
CATEGORIES= graphics
|
|
MASTER_SITES= ftp://ftp.ggi-project.org/pub/packages/ggi/ggi/v2.1/ \
|
|
http://www.ggi-project.org/ftp/ggi/v2.1/ \
|
|
${MASTER_SITE_SOURCEFORGE:=ggi/}
|
|
EXTRACT_SUFX= .tar.bz2
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.ggi-project.org/
|
|
COMMENT= General Graphics Interface library is a flexible drawing library
|
|
|
|
WRKSRC= ${WRKDIR}/${PKGNAME_NOREV}
|
|
USE_LIBTOOL= yes
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --disable-debug
|
|
CONFIGURE_ARGS+= --with-x
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
|
|
|
PKG_SYSCONFSUBDIR= ggi
|
|
EGDIR= ${PREFIX}/share/examples/ggi
|
|
CONF_FILES= ${EGDIR}/libggi.conf ${PKG_SYSCONFDIR}/libggi.conf
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
.if ${OPSYS} == "NetBSD"
|
|
.if !empty(OS_VERSION:M1.[56].*)
|
|
PLIST_SUBST+= COND_TERMINFO="@comment "
|
|
.else
|
|
PLIST_SUBST+= COND_TERMINFO=""
|
|
.endif
|
|
.else
|
|
PLIST_SUBST+= COND_TERMINFO=""
|
|
.endif
|
|
|
|
.if ${OPSYS} == "DragonFly" || ${OPSYS} == "FreeBSD"
|
|
PLIST_SUBST+= COND_LIBVGL=""
|
|
.else
|
|
PLIST_SUBST+= COND_LIBVGL="@comment "
|
|
.endif
|
|
|
|
.if exists(${X11BASE}/include/X11/extensions/xf86dga.h)
|
|
PLIST_SUBST+= COND_XF86DGA=""
|
|
.else
|
|
PLIST_SUBST+= COND_XF86DGA="@comment "
|
|
.endif
|
|
|
|
.include "../../devel/ncurses/buildlink3.mk"
|
|
.include "../../graphics/libgii/buildlink3.mk"
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|