openbsd-ports/net/spectrum-tools/Makefile
ajacoutot fcbe5f3ae2 Sync dependencies after move from libusb to libusb-compat and fix a
couple of fallouts. Note that these ports are only the ones that used to
have a direct dependency on devel/libusb so there may be some other
hidden ports that may break because of the switch. If that's the case,
no need to start ranting all over but instead tell me which one(s)
break. Thanks.

Note: sysutils/nut hasn't been fixed yet but will be today.
2011-11-13 13:54:04 +00:00

71 lines
1.8 KiB
Makefile

# $OpenBSD: Makefile,v 1.15 2011/11/13 13:54:04 ajacoutot Exp $
COMMENT-main = graphical tools for the MetaGeek Wi-spy spectrum analyser
COMMENT-utils = tools for the MetaGeek Wi-spy spectrum analyser
V = 2009-06-R1
DISTNAME = spectools-$V
PKGNAME = spectrum-tools-$V
FULLPKGNAME-main = spectrum-tools-${V:S/-//g}
FULLPKGNAME-utils = spectrum-tools-utils-${V:S/-//g}
REVISION-main = 4
REVISION-utils = 3
CATEGORIES = net
MASTER_SITES = http://www.kismetwireless.net/code/
HOMEPAGE = http://www.kismetwireless.net/spectools/
MAINTAINER = Chris Kuethe <ckuethe@openbsd.org>
# GPLv2+
PERMIT_PACKAGE_CDROM = Yes
PERMIT_PACKAGE_FTP = Yes
PERMIT_DISTFILES_CDROM =Yes
PERMIT_DISTFILES_FTP = Yes
MULTI_PACKAGES = -main -utils
MODULES = devel/gettext
cWANTLIB = c m pthread usb
WANTLIB-main = ${cWANTLIB} \
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 \
pango-1.0 pangocairo-1.0 pangoft2-1.0 pixman-1 \
png pthread-stubs xcb z gdk_pixbuf-2.0 gtk-x11-2.0 gdk-x11-2.0 \
GL gthread-2.0 ${MODGETTEXT_WANTLIB} xcb-render xcb-shm
WANTLIB-utils = ${cWANTLIB} ncurses
LIB_DEPENDS-utils = devel/libusb-compat
LIB_DEPENDS-main += ${LIB_DEPENDS} \
devel/libusb-compat \
x11/gtk+2
RUN_DEPENDS-main = net/spectrum-tools,-utils
RUN_DEPENDS-utils = # empty
CONFIGURE_STYLE = gnu
CONFIGURE_ENV += CPPFLAGS="-I${LOCALBASE}/include" \
CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
USE_GMAKE = Yes
NO_REGRESS = Yes
pre-configure:
perl -pi -e 's,-lpthread,-pthread,g' ${WRKSRC}/configure
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/spectrum-tools
${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/spectrum-tools
.include <bsd.port.mk>