summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorijliao <ijliao@FreeBSD.org>2002-09-21 17:48:05 +0000
committerijliao <ijliao@FreeBSD.org>2002-09-21 17:48:05 +0000
commit0cccc290d0c015e5df59c0522dc363b57a8b3151 (patch)
tree5f27d925df21f18ed30b36429f468cfca911ccbb /graphics
parent7d921654f5c01d3cb88c176709622b584e38f808 (diff)
downloadFreeBSD-ports-0cccc290d0c015e5df59c0522dc363b57a8b3151.zip
FreeBSD-ports-0cccc290d0c015e5df59c0522dc363b57a8b3151.tar.gz
fix build after values.h removal
PR: 42514 Submitted by: maintainer
Diffstat (limited to 'graphics')
-rw-r--r--graphics/metapixel/Makefile4
-rw-r--r--graphics/metapixel/files/patch-Makefile18
2 files changed, 14 insertions, 8 deletions
diff --git a/graphics/metapixel/Makefile b/graphics/metapixel/Makefile
index 9c9d098..81f2717 100644
--- a/graphics/metapixel/Makefile
+++ b/graphics/metapixel/Makefile
@@ -16,9 +16,13 @@ LIB_DEPENDS= png.5:${PORTSDIR}/graphics/png \
gnugetopt.1:${PORTSDIR}/devel/libgnugetopt
USE_GMAKE= yes
+USE_REINPLACE= yes
post-patch:
@${RM} ${WRKSRC}/getopt.h
+ @${REINPLACE_CMD} -e 's,values.h,limits.h,' ${WRKSRC}/libzoom/simple.h
+ @${REINPLACE_CMD} -e 's,MINSHORT,SHRT_MAX,; \
+ s,MAXSHORT,SHRT_MAX,' ${WRKSRC}/libzoom/zoom.c
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/metapixel ${PREFIX}/bin
diff --git a/graphics/metapixel/files/patch-Makefile b/graphics/metapixel/files/patch-Makefile
index b74b1c5..0fb1d77 100644
--- a/graphics/metapixel/files/patch-Makefile
+++ b/graphics/metapixel/files/patch-Makefile
@@ -1,10 +1,8 @@
---- Makefile.orig Fri May 24 03:03:30 2002
-+++ Makefile Fri May 24 03:04:54 2002
-@@ -1,15 +1,17 @@
+--- Makefile.orig Fri Jan 21 23:32:17 2000
++++ Makefile Tue Sep 24 03:40:26 2002
+@@ -1,18 +1,18 @@
-PREFIX = /usr/local
-INSTALL = install
-+#PREFIX = /usr/local
-+#INSTALL = install
BINDIR = $(PREFIX)/bin
@@ -12,14 +10,18 @@
#PROFILE = -pg
+CFLAGS+= -I/usr/local/include
-+LDFLAGS+= -L/usr/local/lib
++LDFLAGS+= -L/usr/local/lib -lgnugetopt
-LDOPTS = -L/usr/X11R6/lib $(PROFILE)
-CCOPTS = -I/usr/X11R6/include -I/usr/X11R6/include/X11 -Wall -O9 $(PROFILE) -DMETAPIXEL_VERSION=\"$(VERSION)\"
-CC = gcc
+LDOPTS = ${LDFLAGS} -L/usr/X11R6/lib $(PROFILE)
-+CCOPTS = ${CFLAGS} -I/usr/X11R6/include -I/usr/X11R6/include/X11 -Wall -O9 $(PROFILE) -DMETAPIXEL_VERSION=\"$(VERSION)\"
++CCOPTS = ${CFLAGS} -I/usr/X11R6/include -I/usr/X11R6/include/X11 -Wall $(PROFILE) -DMETAPIXEL_VERSION=\"$(VERSION)\"
+#CC = gcc
#LIBFFM = -lffm
- OBJS = metapixel.o vector.o rwpng.o rwjpeg.o readimage.o writeimage.o getopt.o getopt1.o
+-OBJS = metapixel.o vector.o rwpng.o rwjpeg.o readimage.o writeimage.o getopt.o getopt1.o
++OBJS = metapixel.o vector.o rwpng.o rwjpeg.o readimage.o writeimage.o
+
+ all : metapixel
+
OpenPOWER on IntegriCloud