mirror of
https://git.freebsd.org/ports.git
synced 2025-07-17 17:29:23 -04:00
graphics/jpeg2ps-*, and merge the papersize-suffixed versions into single ones respectively as print/psutils did. Approved by: dinoex (maintainer) [1]
57 lines
1.4 KiB
Text
57 lines
1.4 KiB
Text
--- Makefile.orig 2002-02-04 20:39:21.000000000 +0900
|
|
+++ Makefile 2013-04-27 23:58:44.000000000 +0900
|
|
@@ -14,15 +14,17 @@
|
|
# The following was reported to work for emx/gcc 0.9c fix04 under OS/2:
|
|
# make -f Makefile "CFLAGS=-c -DA4 -DDOS -O2" "LDFLAGS=-Zexe -s"
|
|
|
|
-CFLAGS=-c -DA4
|
|
-LD=cc
|
|
-LDFLAGS=
|
|
+PREFIX?= /usr/local
|
|
+LOCALBASE?= /usr/local
|
|
+LD= ${CC}
|
|
+LDFLAGS?=
|
|
+LDADD?=
|
|
OBJ=o
|
|
EXE=
|
|
RM=rm -f
|
|
|
|
.c.$(OBJ) :
|
|
- $(CC) $(CFLAGS) $*.c
|
|
+ $(CC) $(CFLAGS) -c $*.c
|
|
|
|
all: jpeg2ps$(EXE)
|
|
|
|
@@ -30,7 +32,7 @@
|
|
# at the end of the next two lines below.
|
|
|
|
jpeg2ps$(EXE): jpeg2ps.$(OBJ) readjpeg.$(OBJ) asc85ec.$(OBJ)
|
|
- $(LD) $(LDFLAGS) -o jpeg2ps$(EXE) jpeg2ps.$(OBJ) readjpeg.$(OBJ) asc85ec.$(OBJ)
|
|
+ $(LD) $(LDFLAGS) -o jpeg2ps$(EXE) jpeg2ps.$(OBJ) readjpeg.$(OBJ) asc85ec.$(OBJ) $(LDADD)
|
|
|
|
DISTFILES = \
|
|
jpeg2ps.c psimage.h readjpeg.c asc85ec.c getopt.c \
|
|
@@ -42,10 +44,10 @@
|
|
|
|
# Location where to install the binary. This is a suitable value for Linux
|
|
# (and possibly other unix-like) systems.
|
|
-BINDIR = /usr/local/bin
|
|
+BINDIR?= ${PREFIX}/bin
|
|
|
|
# Location where to install the manual page.
|
|
-MANDIR = /usr/local/man/man1
|
|
+MANDIR?= ${MAN1PREFIX}/man/man1
|
|
|
|
CONVFILES = \
|
|
jpeg2ps.c psimage.h readjpeg.c asc85ec.c getopt.c \
|
|
@@ -76,8 +78,8 @@
|
|
nesrin.eps
|
|
|
|
install: jpeg2ps$(EXE)
|
|
- cp jpeg2ps$(EXE) $(BINDIR)
|
|
- cp jpeg2ps.1 $(MANDIR)
|
|
+ ${BSD_INSTALL_PROGRAM} jpeg2ps$(EXE) $(BINDIR)
|
|
+ ${BSD_INSTALL_DATA} jpeg2ps.1 $(MANDIR)
|
|
|
|
uninstall:
|
|
rm -f $(BINDIR)/jpeg2ps$(EXE)
|