install pkgconfig file for png.
From: Jacob Meuser <jakemsr at jakemsr dot com>
This commit is contained in:
parent
757a5d0a60
commit
348e1827fe
@ -1,9 +1,9 @@
|
|||||||
# $OpenBSD: Makefile,v 1.49 2004/09/22 21:08:20 brad Exp $
|
# $OpenBSD: Makefile,v 1.50 2004/10/15 04:41:13 brad Exp $
|
||||||
|
|
||||||
COMMENT= "library for manipulating PNG images"
|
COMMENT= "library for manipulating PNG images"
|
||||||
|
|
||||||
DISTNAME= libpng-1.2.7
|
DISTNAME= libpng-1.2.7
|
||||||
PKGNAME= ${DISTNAME:S/lib//}
|
PKGNAME= ${DISTNAME:S/lib//}p1
|
||||||
CATEGORIES= graphics
|
CATEGORIES= graphics
|
||||||
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libpng/}
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=libpng/}
|
||||||
|
|
||||||
|
15
graphics/png/patches/patch-scripts_libpng_pc_in
Normal file
15
graphics/png/patches/patch-scripts_libpng_pc_in
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
$OpenBSD: patch-scripts_libpng_pc_in,v 1.1 2004/10/15 04:41:13 brad Exp $
|
||||||
|
--- scripts/libpng.pc.in.orig Sat Sep 11 22:19:36 2004
|
||||||
|
+++ scripts/libpng.pc.in Thu Oct 14 03:07:03 2004
|
||||||
|
@@ -4,8 +4,8 @@ exec_prefix=${prefix}
|
||||||
|
libdir=${exec_prefix}/lib
|
||||||
|
includedir=${exec_prefix}/include
|
||||||
|
|
||||||
|
-Name: libpng12
|
||||||
|
+Name: libpng
|
||||||
|
Description: Loads and saves PNG files
|
||||||
|
Version: 1.2.7
|
||||||
|
-Libs: -L${libdir} -lpng12 -lz -lm
|
||||||
|
-Cflags: -I${includedir}/libpng12
|
||||||
|
+Libs: -L${libdir} -lpng -lz -lm
|
||||||
|
+Cflags: -I${includedir}/libpng
|
@ -1,6 +1,6 @@
|
|||||||
$OpenBSD: patch-scripts_makefile_openbsd,v 1.10 2004/09/20 01:24:11 brad Exp $
|
$OpenBSD: patch-scripts_makefile_openbsd,v 1.11 2004/10/15 04:41:13 brad Exp $
|
||||||
--- scripts/makefile.openbsd.orig Sat Sep 11 22:19:36 2004
|
--- scripts/makefile.openbsd.orig Sat Sep 11 22:19:36 2004
|
||||||
+++ scripts/makefile.openbsd Sat Sep 18 22:43:38 2004
|
+++ scripts/makefile.openbsd Thu Oct 14 03:48:56 2004
|
||||||
@@ -1,13 +1,16 @@
|
@@ -1,13 +1,16 @@
|
||||||
-# makefile for libpng
|
-# makefile for libpng
|
||||||
+# makefile for libpng under OpenBSD
|
+# makefile for libpng under OpenBSD
|
||||||
@ -22,7 +22,7 @@ $OpenBSD: patch-scripts_makefile_openbsd,v 1.10 2004/09/20 01:24:11 brad Exp $
|
|||||||
|
|
||||||
LIB= png
|
LIB= png
|
||||||
SRCS= png.c pngerror.c pnggccrd.c pngget.c pngmem.c pngpread.c \
|
SRCS= png.c pngerror.c pnggccrd.c pngget.c pngmem.c pngpread.c \
|
||||||
@@ -21,24 +24,36 @@ CPPFLAGS+= -I${.CURDIR} -DPNG_NO_ASSEMBL
|
@@ -21,24 +24,39 @@ CPPFLAGS+= -I${.CURDIR} -DPNG_NO_ASSEMBL
|
||||||
|
|
||||||
NOPROFILE= Yes
|
NOPROFILE= Yes
|
||||||
|
|
||||||
@ -34,12 +34,15 @@ $OpenBSD: patch-scripts_makefile_openbsd,v 1.10 2004/09/20 01:24:11 brad Exp $
|
|||||||
+DOCS= README libpng.txt
|
+DOCS= README libpng.txt
|
||||||
|
|
||||||
-pngtest.o: pngtest.c
|
-pngtest.o: pngtest.c
|
||||||
+all: ${_LIBS} libpng-config
|
+all: ${_LIBS} libpng-config libpng.pc
|
||||||
+
|
+
|
||||||
+pngtest.o: pngtest.c
|
+pngtest.o: pngtest.c
|
||||||
${CC} ${CPPFLAGS} ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}
|
${CC} ${CPPFLAGS} ${CFLAGS} -c ${.ALLSRC} -o ${.TARGET}
|
||||||
|
|
||||||
-pngtest: pngtest.o
|
-pngtest: pngtest.o
|
||||||
|
+libpng.pc:
|
||||||
|
+ cat scripts/libpng.pc.in | sed -e s\!@PREFIX@!$(PREFIX)! > libpng.pc
|
||||||
|
+
|
||||||
+libpng-config:
|
+libpng-config:
|
||||||
+ ( cat scripts/libpng-config-head.in; \
|
+ ( cat scripts/libpng-config-head.in; \
|
||||||
+ echo prefix=\"$(PREFIX)\"; \
|
+ echo prefix=\"$(PREFIX)\"; \
|
||||||
@ -66,7 +69,7 @@ $OpenBSD: patch-scripts_makefile_openbsd,v 1.10 2004/09/20 01:24:11 brad Exp $
|
|||||||
fi
|
fi
|
||||||
if [ ! -d ${DESTDIR}${LIBDIR} ]; then \
|
if [ ! -d ${DESTDIR}${LIBDIR} ]; then \
|
||||||
${INSTALL} -d -o root -g wheel ${DESTDIR}${LIBDIR}; \
|
${INSTALL} -d -o root -g wheel ${DESTDIR}${LIBDIR}; \
|
||||||
@@ -52,21 +67,19 @@ beforeinstall:
|
@@ -52,21 +70,24 @@ beforeinstall:
|
||||||
if [ ! -d ${DESTDIR}${MANDIR}5 ]; then \
|
if [ ! -d ${DESTDIR}${MANDIR}5 ]; then \
|
||||||
${INSTALL} -d -o root -g wheel ${DESTDIR}${MANDIR}5; \
|
${INSTALL} -d -o root -g wheel ${DESTDIR}${MANDIR}5; \
|
||||||
fi
|
fi
|
||||||
@ -75,6 +78,9 @@ $OpenBSD: patch-scripts_makefile_openbsd,v 1.10 2004/09/20 01:24:11 brad Exp $
|
|||||||
+ if [ ! -d ${DESTDIR}${DOCDIR} ]; then \
|
+ if [ ! -d ${DESTDIR}${DOCDIR} ]; then \
|
||||||
+ ${INSTALL} -d -o root -g wheel ${DESTDIR}${DOCDIR}; \
|
+ ${INSTALL} -d -o root -g wheel ${DESTDIR}${DOCDIR}; \
|
||||||
fi
|
fi
|
||||||
|
+ if [ ! -d ${DESTDIR}${LIBDIR}/pkgconfig ]; then \
|
||||||
|
+ ${INSTALL} -d -o root -g wheel ${DESTDIR}${LIBDIR}/pkgconfig; \
|
||||||
|
+ fi
|
||||||
|
|
||||||
afterinstall:
|
afterinstall:
|
||||||
@rm -f ${DESTDIR}${LIBDIR}/libpng_pic.a
|
@rm -f ${DESTDIR}${LIBDIR}/libpng_pic.a
|
||||||
@ -89,7 +95,8 @@ $OpenBSD: patch-scripts_makefile_openbsd,v 1.10 2004/09/20 01:24:11 brad Exp $
|
|||||||
+ -m ${NONBINMODE} ${HDRS} ${DESTDIR}${INCDIR}
|
+ -m ${NONBINMODE} ${HDRS} ${DESTDIR}${INCDIR}
|
||||||
${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \
|
${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \
|
||||||
- -m ${NONBINMODE} ${HDRS} ${DESTDIR}${PREFIX}/include
|
- -m ${NONBINMODE} ${HDRS} ${DESTDIR}${PREFIX}/include
|
||||||
- ${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \
|
+ -m ${NONBINMODE} libpng.pc ${DESTDIR}${LIBDIR}/pkgconfig
|
||||||
|
${INSTALL} ${INSTALL_COPY} -o ${SHAREOWN} -g ${SHAREGRP} \
|
||||||
- -m ${NONBINMODE} ${DOCS} ${DESTDIR}${PREFIX}/share/doc/png
|
- -m ${NONBINMODE} ${DOCS} ${DESTDIR}${PREFIX}/share/doc/png
|
||||||
+ -m ${NONBINMODE} ${DOCS} ${DESTDIR}${DOCDIR}
|
+ -m ${NONBINMODE} ${DOCS} ${DESTDIR}${DOCDIR}
|
||||||
|
|
||||||
|
@ -1,10 +1,12 @@
|
|||||||
@comment $OpenBSD: PLIST,v 1.17 2004/09/15 00:50:10 espie Exp $
|
@comment $OpenBSD: PLIST,v 1.18 2004/10/15 04:41:13 brad Exp $
|
||||||
%%SHARED%%
|
%%SHARED%%
|
||||||
bin/libpng-config
|
bin/libpng-config
|
||||||
include/libpng/
|
include/libpng/
|
||||||
include/libpng/png.h
|
include/libpng/png.h
|
||||||
include/libpng/pngconf.h
|
include/libpng/pngconf.h
|
||||||
lib/libpng.a
|
lib/libpng.a
|
||||||
|
lib/pkgconfig/
|
||||||
|
lib/pkgconfig/libpng.pc
|
||||||
@man man/cat3/libpng.0
|
@man man/cat3/libpng.0
|
||||||
@man man/cat3/libpngpf.0
|
@man man/cat3/libpngpf.0
|
||||||
@man man/cat5/png.0
|
@man man/cat5/png.0
|
||||||
|
Loading…
Reference in New Issue
Block a user