openbsd-ports/editors/nedit/patches/patch-makefiles_Makefile_openbsd
mbalmer 85de94bc3c Let the nedit package be built on static architectures. This makes this
editor available on the Vax ;)

(by fixing library link order and adding missing libs).
2007-10-27 14:01:38 +00:00

29 lines
1.0 KiB
Plaintext

$OpenBSD: patch-makefiles_Makefile_openbsd,v 1.8 2007/10/27 14:01:38 mbalmer Exp $
--- makefiles/Makefile.openbsd.orig Sat Nov 22 06:03:39 2003
+++ makefiles/Makefile.openbsd Sat Oct 27 07:31:57 2007
@@ -1,6 +1,6 @@
# $Id: patch-makefiles_Makefile_openbsd,v 1.8 2007/10/27 14:01:38 mbalmer 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} -lXft -lXpm -lXp -lXext -lXt -lSM -lICE -lX11 -lfontconfig -lfreetype -lexpat -lm -lXau -lXdmcp -lXrender -lXmu -lz -liconv
include Makefile.common