2009-01-26 05:59:14 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.19 2009/01/26 10:59:14 ajacoutot Exp $
|
2006-05-29 14:05:53 -04:00
|
|
|
|
2007-09-15 21:37:09 -04:00
|
|
|
COMMENT= tools to talk to GSM cellular phones
|
2006-05-29 14:05:53 -04:00
|
|
|
|
2007-10-17 10:37:34 -04:00
|
|
|
DISTNAME= gnokii-0.6.14
|
2009-01-26 05:59:14 -05:00
|
|
|
PKGNAME= ${DISTNAME}p8
|
2006-05-29 14:05:53 -04:00
|
|
|
CATEGORIES= comms x11
|
2006-10-28 07:19:20 -04:00
|
|
|
SHARED_LIBS += gnokii 2.7 # .3.0
|
2006-05-29 14:05:53 -04:00
|
|
|
|
|
|
|
MAINTAINER= Robert Nagy <robert@openbsd.org>
|
|
|
|
|
|
|
|
HOMEPAGE= http://www.gnokii.org/
|
2006-10-21 07:29:47 -04:00
|
|
|
MASTER_SITES= ${HOMEPAGE}download/gnokii/
|
2006-05-29 14:05:53 -04:00
|
|
|
|
2008-06-01 13:33:36 -04:00
|
|
|
# GPLv2
|
2006-05-29 14:05:53 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
FLAVORS= no_x11
|
|
|
|
FLAVOR?=
|
|
|
|
|
2007-10-17 10:37:34 -04:00
|
|
|
WANTLIB= c
|
2006-05-29 14:05:53 -04:00
|
|
|
|
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
USE_GMAKE= Yes
|
|
|
|
|
2007-10-16 08:44:50 -04:00
|
|
|
MODULES= devel/gettext
|
|
|
|
|
2006-05-29 14:05:53 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
2007-10-17 10:37:34 -04:00
|
|
|
CONFIGURE_ENV= LDFLAGS="-L${LOCALBASE}/lib"
|
2006-06-01 21:54:28 -04:00
|
|
|
CONFIGURE_ARGS= --enable-security \
|
|
|
|
--disable-debug \
|
|
|
|
--disable-xdebug \
|
|
|
|
--disable-rlpdebug
|
2006-05-29 14:05:53 -04:00
|
|
|
|
|
|
|
.if ${FLAVOR:L:Mno_x11}
|
|
|
|
CONFIGURE_ARGS+= --without-x
|
|
|
|
.else
|
2006-11-11 16:04:27 -05:00
|
|
|
USE_X11= Yes
|
2006-05-29 14:05:53 -04:00
|
|
|
CONFIGURE_ARGS+= --with-x
|
2007-04-13 10:50:06 -04:00
|
|
|
WANTLIB+= X11 Xau Xdmcp Xpm Xrender fontconfig freetype z \
|
2009-01-26 05:59:14 -05:00
|
|
|
Xcomposite Xdamage pixman-1 gio-2.0 \
|
2007-11-13 07:55:46 -05:00
|
|
|
m pthread pcre atk-1.0.>=800.0 glib-2.0.>=400.8 \
|
2006-08-01 18:19:46 -04:00
|
|
|
gmodule-2.0.>=400.8 gobject-2.0.>=400.8 \
|
|
|
|
pango-1.0.>=600.0 pangoft2-1.0.>=600.0 \
|
2007-10-16 08:44:50 -04:00
|
|
|
pangocairo-1.0 cairo glitz png expat \
|
|
|
|
Xcursor Xext Xfixes Xi Xinerama Xrandr
|
2008-06-01 13:33:36 -04:00
|
|
|
LIB_DEPENDS= gtk-x11-2.0.>=400.13,gdk-x11-2.0.>=400.13,gdk_pixbuf-2.0.>=400.13::x11/gtk+2 \
|
|
|
|
ical::textproc/libical
|
2007-10-16 08:44:50 -04:00
|
|
|
RUN_DEPENDS+= :desktop-file-utils-*:devel/desktop-file-utils
|
2006-05-29 14:05:53 -04:00
|
|
|
.endif
|
|
|
|
|
2007-01-12 09:44:05 -05:00
|
|
|
LIB_DEPENDS+= usb.>=8::devel/libusb
|
|
|
|
|
2006-05-29 14:05:53 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/gnokii
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Docs/sample/gnokiirc \
|
|
|
|
${PREFIX}/share/examples/gnokii
|
2006-06-01 21:54:28 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/Docs/man/gnokii.1 \
|
|
|
|
${PREFIX}/man/man1
|
|
|
|
.if !${FLAVOR:L:Mno_x11}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/Docs/man/xgnokii.1x \
|
|
|
|
${PREFIX}/man/man1/xgnokii.1
|
|
|
|
.endif
|
2006-05-29 14:05:53 -04:00
|
|
|
|
2007-10-17 10:37:34 -04:00
|
|
|
do-regress:
|
|
|
|
cd ${WRKSRC}/testsuite && ./testit
|
|
|
|
|
2006-05-29 14:05:53 -04:00
|
|
|
.include <bsd.port.mk>
|