diff options
author | kevlo <kevlo@FreeBSD.org> | 2000-07-15 16:45:18 +0000 |
---|---|---|
committer | kevlo <kevlo@FreeBSD.org> | 2000-07-15 16:45:18 +0000 |
commit | adf7a982aaa01096a827b283d3498d0291a9316b (patch) | |
tree | 5071a2c4f806982ec39b5ea1ba8925545e59465d /security | |
parent | ebfc7c68fc28a10fbe23f790104aea9ccd5a217c (diff) | |
download | FreeBSD-ports-adf7a982aaa01096a827b283d3498d0291a9316b.zip FreeBSD-ports-adf7a982aaa01096a827b283d3498d0291a9316b.tar.gz |
- Use GTK_CONFIG instead of hardcoded gtk12-config
PR: 19930
Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Diffstat (limited to 'security')
-rw-r--r-- | security/gtkportscan/Makefile | 7 | ||||
-rw-r--r-- | security/gtkportscan/files/patch-aa | 10 |
2 files changed, 8 insertions, 9 deletions
diff --git a/security/gtkportscan/Makefile b/security/gtkportscan/Makefile index e7dc447..2fc2cb8 100644 --- a/security/gtkportscan/Makefile +++ b/security/gtkportscan/Makefile @@ -15,10 +15,9 @@ MAINTAINER= ports@FreeBSD.org LIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 -WRKSRC= ${WRKDIR}/gtkportscan +GTK_CONFIG?= ${X11BASE}/bin/gtk12-config -do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/gtkportscan ${PREFIX}/bin - ${INSTALL_PROGRAM} ${WRKSRC}/portscan ${PREFIX}/bin +WRKSRC= ${WRKDIR}/${PORTNAME} +MAKE_ENV= GTK_CONFIG="${GTK_CONFIG}" .include <bsd.port.mk> diff --git a/security/gtkportscan/files/patch-aa b/security/gtkportscan/files/patch-aa index 5eb7398..9dc42a9 100644 --- a/security/gtkportscan/files/patch-aa +++ b/security/gtkportscan/files/patch-aa @@ -1,20 +1,20 @@ ---- Makefile.orig Thu Mar 11 01:58:41 1999 -+++ Makefile Sun Sep 12 20:59:30 1999 +--- Makefile.orig Thu Mar 11 17:58:41 1999 ++++ Makefile Sun Jul 16 00:45:14 2000 @@ -1,21 +1,21 @@ -CC=gcc -GTK_FLAGS=`gtk-config --cflags` `gtk-config --libs` +CC?=gcc -+GTK_FLAGS=`gtk12-config --cflags` `gtk12-config --libs` ++GTK_FLAGS=`$(GTK_CONFIG) --cflags` `$(GTK_CONFIG) --libs` all: gtkportscan portscan portscan: portscan.c - $(CC) -O2 -Wall portscan.c -o portscan -g -+ $(CC) $(CFLAgS) -Wall portscan.c -o portscan ${CFLAGS} ++ $(CC) $(CFLAGS) portscan.c -o portscan gtkportscan: gtkportscan.c - $(CC) -Wall $(GTK_FLAGS) gtkportscan.c -o gtkportscan -g -+ $(CC) -Wall $(GTK_FLAGS) gtkportscan.c -o gtkportscan ${CFLAGS} ++ $(CC) $(CFLAGS) $(GTK_FLAGS) gtkportscan.c -o gtkportscan install: - cp portscan /usr/local/bin |