Index: head/net-mgmt/spectools/Makefile =================================================================== --- head/net-mgmt/spectools/Makefile (revision 395294) +++ head/net-mgmt/spectools/Makefile (revision 395295) @@ -1,68 +1,52 @@ # Created by: Henrik Brix Andersen # $FreeBSD$ PORTNAME= spectools PORTVERSION= 201108.r1 PORTREVISION= 2 CATEGORIES= net-mgmt MASTER_SITES= http://www.kismetwireless.net/code/ \ LOCAL/brix DISTNAME= spectools-2011-08-R1 MAINTAINER= ports@FreeBSD.org COMMENT= Tools for the Wi-Spy spectrum analyzers from MetaGeek LLC LICENSE= GPLv2 +LICENSE_FILE= ${WRKSRC}/GPL +BROKEN_ia64= does not build: duplicate definition of malloc +BROKEN_powerpc= does not build: duplicate definition of malloc +BROKEN_sparc64= does not build: duplicate definition of malloc + +USES= gmake pkgconfig GNU_CONFIGURE= yes CPPFLAGS+= -I${LOCALBASE}/include LDFLAGS+= -L${LOCALBASE}/lib -USES= gmake pkgconfig +ALL_TARGET= spectool_net spectool_raw PORTDOCS= README OPTIONS_DEFINE= GTK2 NCURSES DOCS OPTIONS_DEFAULT= GTK2 NCURSES +OPTIONS_SUB= yes -ALL_TARGET= spectool_net spectool_raw +GTK2_ALL_TARGET= spectool_gtk +GTK2_USE= GNOME=gtk20 +NCURSES_ALL_TARGET= spectool_curses -.include - -.if ${PORT_OPTIONS:MGTK2} -ALL_TARGET+= spectool_gtk -USE_GNOME= gtk20 -PLIST_SUB+= GTK="" -.else -PLIST_SUB+= GTK="@comment " -.endif - -.if ${PORT_OPTIONS:MNCURSES} -ALL_TARGET+= spectool_curses -PLIST_SUB+= NCURSES="" -.else -PLIST_SUB+= NCURSES="@comment " -.endif - -.include - -.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64" -BROKEN= Does not build: duplicate definition of malloc -.endif - do-install: ${INSTALL_PROGRAM} ${WRKSRC}/spectool_net ${STAGEDIR}/${PREFIX}/bin ${INSTALL_PROGRAM} ${WRKSRC}/spectool_raw ${STAGEDIR}/${PREFIX}/bin -.if ${PORT_OPTIONS:MGTK2} + +do-install-GTK2-on: ${INSTALL_PROGRAM} ${WRKSRC}/spectool_gtk ${STAGEDIR}/${PREFIX}/bin -.endif -.if ${PORT_OPTIONS:MNCURSES} + +do-install-NCURSES-on: ${INSTALL_PROGRAM} ${WRKSRC}/spectool_curses ${STAGEDIR}/${PREFIX}/bin -.endif -post-install: -.if ${PORT_OPTIONS:MDOCS} +post-install-DOCS-on: ${MKDIR} ${STAGEDIR}/${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S@^@${WRKSRC}/@} ${STAGEDIR}/${DOCSDIR} -.endif -.include +.include Index: head/net-mgmt/spectools/pkg-plist =================================================================== --- head/net-mgmt/spectools/pkg-plist (revision 395294) +++ head/net-mgmt/spectools/pkg-plist (revision 395295) @@ -1,4 +1,4 @@ -%%GTK%%bin/spectool_gtk +%%GTK2%%bin/spectool_gtk %%NCURSES%%bin/spectool_curses bin/spectool_net bin/spectool_raw