1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-23 00:43:28 +00:00

Use MAKE_ARGS

This commit is contained in:
Volker Stolz 2005-05-19 09:15:39 +00:00
parent 6d0e8077c2
commit 90abca96c1
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=135592
2 changed files with 3 additions and 29 deletions

View File

@ -20,6 +20,9 @@ LIB_DEPENDS= compface:${PORTSDIR}/mail/faces
WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}
ALL_TARGET= slrnface
MAKE_ARGS= CC="${CC}" C_FLAGS="${CFLAGS}" \
X_INCL=-I${X11BASE}/include \
XF_LIB="-L${X11BASE}/lib -L${LOCALBASE}/lib -lcompface"
USE_XLIB= yes

View File

@ -1,29 +0,0 @@
--- Makefile.orig Sat Aug 24 23:56:21 2002
+++ Makefile Fri Sep 6 14:46:38 2002
@@ -1,21 +1,19 @@
-CC = cc
-
-X_INCL = # location of X include files, if needed
+X_INCL = -I${X11BASE}/include # location of X include files, if needed
# A lot of popular terminals are brain damaged, so we cannot use X
# resources for configuration. In those cases Xt routines won't even be
# called, so you might want to use lazy loading for Xt if your OS supports it.
X_LIBS = -lXt -lX11 # X libs
-XF_LIB = -L/usr/local/lib -lcompface # compface library
-C_FLAGS = -O
+XF_LIB = -L${X11BASE}/lib -L${LOCALBASE}/lib -lcompface # compface library
+C_FLAGS = #-O
prefix = /usr/local
# No need to configure anything below.
-CFLAGS = $(C_FLAGS) $(X_INCL)
-LDFLAGS = $(XF_LIB) $(X_LIBS)
+CFLAGS += $(C_FLAGS) $(X_INCL)
+LDFLAGS += $(XF_LIB) $(X_LIBS)
slrnface: slrnface.c
$(CC) $(CFLAGS) -o slrnface slrnface.c $(LDFLAGS)