2012-02-16 16:26:55 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.16 2012/02/16 21:26:55 sthen Exp $
|
2008-06-12 17:33:57 -04:00
|
|
|
|
2009-02-13 06:01:25 -05:00
|
|
|
COMMENT-main = graphical tools for the MetaGeek Wi-spy spectrum analyser
|
|
|
|
COMMENT-utils = tools for the MetaGeek Wi-spy spectrum analyser
|
2008-06-12 17:33:57 -04:00
|
|
|
|
2012-02-16 16:26:55 -05:00
|
|
|
V = 2011-08-R1
|
2008-06-12 17:33:57 -04:00
|
|
|
DISTNAME = spectools-$V
|
2009-08-12 18:01:56 -04:00
|
|
|
PKGNAME = spectrum-tools-$V
|
2009-02-18 10:42:38 -05:00
|
|
|
|
2009-09-01 19:11:30 -04:00
|
|
|
FULLPKGNAME-main = spectrum-tools-${V:S/-//g}
|
2009-05-31 13:49:19 -04:00
|
|
|
FULLPKGNAME-utils = spectrum-tools-utils-${V:S/-//g}
|
2009-02-18 10:42:38 -05:00
|
|
|
|
2008-06-12 17:33:57 -04:00
|
|
|
CATEGORIES = net
|
|
|
|
|
2009-05-31 13:49:19 -04:00
|
|
|
MASTER_SITES = http://www.kismetwireless.net/code/
|
2008-06-12 17:33:57 -04:00
|
|
|
|
|
|
|
HOMEPAGE = http://www.kismetwireless.net/spectools/
|
|
|
|
|
2009-05-31 13:49:19 -04:00
|
|
|
MAINTAINER = Chris Kuethe <ckuethe@openbsd.org>
|
2008-06-12 17:33:57 -04:00
|
|
|
|
|
|
|
# GPLv2+
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
PERMIT_PACKAGE_FTP = Yes
|
|
|
|
PERMIT_DISTFILES_CDROM =Yes
|
|
|
|
PERMIT_DISTFILES_FTP = Yes
|
|
|
|
|
|
|
|
MULTI_PACKAGES = -main -utils
|
|
|
|
|
2012-02-16 16:26:55 -05:00
|
|
|
cWANTLIB = c m pthread usb
|
2011-11-13 08:54:04 -05:00
|
|
|
MODULES = devel/gettext
|
|
|
|
|
2012-02-16 16:26:55 -05:00
|
|
|
WANTLIB-main = ${cWANTLIB} ${MODGETTEXT_WANTLIB} \
|
|
|
|
GL X11 Xcomposite Xcursor Xdamage Xext Xfixes \
|
|
|
|
Xi Xinerama Xrandr Xrender atk-1.0 cairo expat \
|
|
|
|
fontconfig freetype gio-2.0 glib-2.0 gmodule-2.0 gobject-2.0 \
|
2011-07-06 20:22:37 -04:00
|
|
|
pango-1.0 pangocairo-1.0 pangoft2-1.0 pixman-1 \
|
2012-02-16 16:26:55 -05:00
|
|
|
png pthread-stubs xcb z gdk_pixbuf-2.0 gdk-x11-2.0 \
|
|
|
|
gtk-x11-2.0 gthread-2.0 xcb-render xcb-shm
|
2008-06-12 17:33:57 -04:00
|
|
|
|
2011-07-06 20:22:37 -04:00
|
|
|
WANTLIB-utils = ${cWANTLIB} ncurses
|
2008-06-12 17:33:57 -04:00
|
|
|
|
2011-11-13 08:54:04 -05:00
|
|
|
LIB_DEPENDS-utils = devel/libusb-compat
|
2008-06-12 17:33:57 -04:00
|
|
|
|
|
|
|
LIB_DEPENDS-main += ${LIB_DEPENDS} \
|
2011-11-13 08:54:04 -05:00
|
|
|
devel/libusb-compat \
|
2010-11-19 17:31:32 -05:00
|
|
|
x11/gtk+2
|
2008-06-12 17:33:57 -04:00
|
|
|
|
2012-02-16 16:26:55 -05:00
|
|
|
RUN_DEPENDS-main = net/spectrum-tools,-utils
|
2011-07-06 20:22:37 -04:00
|
|
|
RUN_DEPENDS-utils = # empty
|
2008-06-12 17:33:57 -04:00
|
|
|
|
|
|
|
CONFIGURE_STYLE = gnu
|
|
|
|
CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
USE_GMAKE = Yes
|
|
|
|
|
|
|
|
NO_REGRESS = Yes
|
|
|
|
|
2011-11-13 08:54:04 -05:00
|
|
|
pre-configure:
|
|
|
|
perl -pi -e 's,-lpthread,-pthread,g' ${WRKSRC}/configure
|
|
|
|
|
2008-06-12 17:33:57 -04:00
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/spectrum-tools
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/spectrum-tools
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|