openbsd-ports/editors/nedit/patches/patch-makefiles_Makefile_openbsd
jasper bbc653e7bb - add some more keywords for C
- remove djm@ as maintainer (per his request)
- regen patches while here

ok ajacoutot@ djm@
2007-06-26 19:54:53 +00:00

29 lines
961 B
Plaintext

$OpenBSD: patch-makefiles_Makefile_openbsd,v 1.6 2007/06/26 19:54:53 jasper Exp $
--- makefiles/Makefile.openbsd.orig Sat Nov 22 14:03:39 2003
+++ makefiles/Makefile.openbsd Fri Jun 22 17:30:03 2007
@@ -1,6 +1,6 @@
# $Id: patch-makefiles_Makefile_openbsd,v 1.6 2007/06/26 19:54:53 jasper Exp $
-CC=cc
-AR=ar
+CC?=cc
+AR?=ar
# For editres, add -DEDITRES to CFLAGS and -lXmu to LIBS
#
@@ -10,9 +10,13 @@ AR=ar
# To test if the Motif library exports the runtime version
# add -DHAVE__XMVERSIONSTRING to CFLAGS
#
-CFLAGS=-O -I/usr/X11R6/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD
+LOCALBASE?=/usr/local
+X11BASE?=/usr/X11R6
+CFLAGS+=-I${X11BASE}/include -I${LOCALBASE}/include
+CFLAGS+=-DUSE_DIRENT -DUSE_LPR_PRINT_CMD -DHAVE_MKSTEMP
ARFLAGS=-ur
-LIBS= -L/usr/X11R6/lib -lXm -lXpm -lXp -lXext -lXt -lSM -lICE -lX11 -lm
+MOTIFLIB?=-L${LOCALBASE} -lXm
+LIBS=-L${X11BASE}/lib ${MOTIFLIB} -lXpm -lXp -lXext -lXt -lSM -lICE -lX11 -lm
include Makefile.common