1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00
freebsd-ports/ftp/wmget/files/patch-Makefile
Kevin Lo bea036af53 Update to 0.6.0
PR: ports/76346
Submitted by: MAINTAINER
2005-01-26 05:40:49 +00:00

40 lines
1.0 KiB
Plaintext

--- Makefile.orig Sun Feb 9 05:04:20 2003
+++ Makefile Tue Jan 27 16:34:31 2004
@@ -46,15 +46,17 @@
# To specify a different prefix, you can override this on the command line
# make PREFIX=/opt/dockapps install
-PREFIX= /usr/local
+X11BASE?= /usr/X11R6
+PREFIX?= ${X11BASE}
INSTALLDIR= install -d -m 755
-INSTALLBIN= install -m 555
-INSTALLMAN= install -m 444
-CC= gcc
-CFLAGS= -Wall -W -I/usr/X11R6/include -O
+INSTALLBIN= $(INSTALL_PROGRAM)
+INSTALLMAN= $(INSTALL_MAN)
+CC?= gcc
+CFLAGS?= -Wall -W
+CFLAGS+= -I${X11BASE}/include -I${LOCALBASE}/include
# The following line is what I use during development
#CFLAGS:= $(CFLAGS) -Werror -g
-LDFLAGS= -L/usr/X11R6/lib -lXpm -lXext -lX11 -lm -lcurl
+LDFLAGS+= -L${X11BASE}/lib -L${LOCALBASE}/lib -lXpm -lXext -lX11 -lm -lcurl
DOCS= wmget.1
VERSION:= $(shell grep '\#define WMGET_VERSION ' wmget.h \
@@ -99,5 +101,5 @@
dockapplib:
- make -C $(DALIBDIR)
+ ${MAKE} -C $(DALIBDIR)
@@ -121,4 +123,4 @@
- make -C dockapp clean
+ ${MAKE} -C dockapp clean
docclean:
rm -f $(DOCS)