openbsd-ports/editors/nedit/patches/patch-makefiles_Makefile_openbsd
ajacoutot 45f4d84def - add a wrapmark FLAVOR to display the wrap margin line
- regen patches

maintainer timeout

ok simon@
2007-01-05 19:39:40 +00:00

29 lines
967 B
Plaintext

$OpenBSD: patch-makefiles_Makefile_openbsd,v 1.4 2007/01/05 19:39:40 ajacoutot Exp $
--- makefiles/Makefile.openbsd.orig Sat Nov 22 14:03:39 2003
+++ makefiles/Makefile.openbsd Fri Jan 5 20:35:04 2007
@@ -1,6 +1,6 @@
# $Id: patch-makefiles_Makefile_openbsd,v 1.4 2007/01/05 19:39:40 ajacoutot 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