2003-05-10 02:46:54 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.17 2003/05/10 02:46:54 marcm Exp $
|
2001-09-13 20:45:46 +00:00
|
|
|
|
|
|
|
COMMENT= "portable library for obtaining system information"
|
2002-09-20 08:15:15 +00:00
|
|
|
|
|
|
|
DISTNAME= libgtop-1.0.13
|
2003-05-10 02:46:54 +00:00
|
|
|
PKGNAME= ${DISTNAME}p1
|
2001-09-13 20:45:46 +00:00
|
|
|
CATEGORIES= devel
|
2002-09-20 08:15:15 +00:00
|
|
|
|
2003-05-10 02:46:54 +00:00
|
|
|
HOMEPAGE= http://www.gnome.org/softwaremap/projects/libgtop/
|
2002-12-03 22:45:32 +00:00
|
|
|
MAINTAINER= Jim Geovedi <jim@corebsd.or.id>
|
2001-09-13 20:45:46 +00:00
|
|
|
|
2002-09-20 08:15:15 +00:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME:=sources/libgtop/1.0/}
|
2001-09-13 20:45:46 +00:00
|
|
|
|
|
|
|
FLAVORS= gnome guile
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ARGS+= ${CONFIGURE_SHARED}
|
2001-09-19 14:37:49 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
2001-09-13 20:45:46 +00:00
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
|
2001-10-25 01:58:54 +00:00
|
|
|
MODULES= gettext
|
|
|
|
LIB_DEPENDS= glib.1.2::devel/glib
|
2001-10-07 20:55:10 +00:00
|
|
|
|
2001-09-13 20:45:46 +00:00
|
|
|
.if ${FLAVOR:L:Mgnome}
|
2001-10-11 21:14:43 +00:00
|
|
|
LIB_DEPENDS+= gnome.36,gnomesupport::x11/gnome/libs
|
2001-09-13 20:45:46 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gnome
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mguile}
|
2002-06-09 05:31:40 +00:00
|
|
|
BUILD_DEPENDS+= :guile-*:lang/guile
|
|
|
|
RUN_DEPENDS+= :guile-*:lang/guile
|
2001-09-13 20:45:46 +00:00
|
|
|
CONFIGURE_ARGS+= --with-libgtop-guile=yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --with-libgtop-guile=no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|
2001-11-27 23:07:01 +00:00
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mguile} && !defined(NO_SHARED_LIBS)
|
|
|
|
SED_PLIST+=-e '/%%SHARED-guile%%/r${PKGDIR}/PFRAG.shared.guile' -e '//d'
|
|
|
|
.elif ${FLAVOR:L:Mguile}
|
|
|
|
SED_PLIST+=-e '/%%SHARED-guile%%/d'
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if !${FLAVOR:L:Mgnome} && !defined(NO_SHARED_LIBS)
|
|
|
|
SED_PLIST+=-e '/%%SHARED-no-gnome%%/r${PKGDIR}/PFRAG.shared.no-gnome' -e '//d'
|
2001-11-28 12:38:58 +00:00
|
|
|
.elif !${FLAVOR:L:Mgnome}
|
2001-11-27 23:07:01 +00:00
|
|
|
SED_PLIST+=-e '/%%SHARED-no-gnome%%/d'
|
|
|
|
.endif
|