1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Drop gmake dependency during build.

Submitted by:	kevlo, modified by me to respect CFLAGS.
This commit is contained in:
Jing-Tang Keith Jang 2001-01-30 14:18:07 +00:00
parent b6f19d32ba
commit 4f0a28d655
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=37800
2 changed files with 17 additions and 20 deletions

View File

@ -13,7 +13,6 @@ DISTNAME= bg5ps-1.3.0
MAINTAINER= keith@FreeBSD.org
USE_GMAKE= yes
USE_FREETYPE= yes
USE_PYTHON= yes

View File

@ -1,34 +1,32 @@
--- Makefile.orig Thu Nov 2 22:44:32 2000
+++ Makefile Thu Nov 2 22:47:11 2000
@@ -21,11 +21,13 @@
--- Makefile.orig Tue Feb 15 04:41:27 2000
+++ Makefile Tue Jan 30 22:01:34 2001
@@ -19,21 +19,22 @@
CC = gcc
INSTALL = install
CFLAGS =
-CFLAGS =
+CFLAGS += -I${LOCALBASE}/include
LIBS = -lttf -lm
-INCLUDEDIR =
+LIBSDIR = -L/usr/local/lib
+INCLUDEDIR = -I/usr/local/include
+LIBSDIR = -L${LOCALBASE}/lib
-prefix = /usr
+
+prefix = /usr/local
BINDIR = $(prefix)/bin
-BINDIR = $(prefix)/bin
-ETCDIR = /etc/chinese/
+ETCDIR = /usr/local/etc/etc
+
+PREFIX?= /usr/local
+BINDIR = $(PREFIX)/bin
+ETCDIR = $(PREFIX)/etc
all: ttf2psm
@@ -33,12 +35,12 @@
$(CC) -c $(CFLAGS) $(INCLUDEDIR) $< -o $@
%.o : %.c
- $(CC) -c $(CFLAGS) $(INCLUDEDIR) $< -o $@
+ $(CC) -c $(CFLAGS) $< -o $@
ttf2psm: $(OBJS)
- $(CC) $(CFLAGS) $(INCLUDEDIR) $(LIBS) -o ttf2psm $(OBJS)
+ $(CC) $(CFLAGS) $(INCLUDEDIR) $(LIBSDIR) $(LIBS) -o ttf2psm $(OBJS)
+ $(CC) $(CFLAGS) $(LIBSDIR) $(LIBS) -o ttf2psm $(OBJS)
install: all bg5ps bg5ps.conf
mkdir -p $(ETCDIR)
mkdir -p $(BINDIR)
- $(INSTALL) -m644 bg5ps.conf $(ETCDIR)/bg5ps.conf
+ $(INSTALL) -m644 bg5ps.conf $(ETCDIR)/bg5ps.conf.sample
$(INSTALL) -m755 bg5ps $(BINDIR)
$(INSTALL) -m755 ttf2psm $(BINDIR)