ports/70879: [NEW PORT] graphics/libpcd: A library for reading PhotoCD images and add support PCD to graphics/ida

Andrey Slusar anray at inet.ua
Mon Aug 23 20:00:39 UTC 2004


>Number:         70879
>Category:       ports
>Synopsis:       [NEW PORT] graphics/libpcd: A library for reading PhotoCD images and add support PCD to graphics/ida
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Aug 23 20:00:38 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Andrey Slusar
>Release:        FreeBSD 6.0-CURRENT i386
>Organization:
Santinel
>Environment:
System: FreeBSD santinel.home.ua 6.0-CURRENT FreeBSD 6.0-CURRENT #0: Sat Aug 21 12:48:37 EEST 2004 anray at santinel.home.ua:/usr/obj/usr/src/sys/ANRAY i386
>Description:
	This is a tiny library for decoding PhotoCD images.  Its not exactly
	new, it exists for years.  I've just released it separately for the
	first time now.  It used to come bundled with xpcd.

	WWW:    http://linux.bytesex.org/fbida/libpcd.html
>How-To-Repeat:
>Fix:

--- libpcd.port begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	/usr/ports/graphics/libpcd
#	/usr/ports/graphics/libpcd/pkg-descr
#	/usr/ports/graphics/libpcd/Makefile
#	/usr/ports/graphics/libpcd/pkg-plist
#	/usr/ports/graphics/libpcd/distinfo
#	/usr/ports/graphics/libpcd/files
#	/usr/ports/graphics/libpcd/files/patch-GNUmakefile
#
echo c - /usr/ports/graphics/libpcd
mkdir -p /usr/ports/graphics/libpcd > /dev/null 2>&1
echo x - /usr/ports/graphics/libpcd/pkg-descr
sed 's/^X//' >/usr/ports/graphics/libpcd/pkg-descr << 'END-of-/usr/ports/graphics/libpcd/pkg-descr'
XThis is a tiny library for decoding PhotoCD images.  Its not exactly
Xnew, it exists for years.  I've just released it separately for the
Xfirst time now.  It used to come bundled with xpcd.
X
XAuthor:	Gerd Knorr <kraxel at bytesex.org>
XWWW:	http://linux.bytesex.org/fbida/libpcd.html
END-of-/usr/ports/graphics/libpcd/pkg-descr
echo x - /usr/ports/graphics/libpcd/Makefile
sed 's/^X//' >/usr/ports/graphics/libpcd/Makefile << 'END-of-/usr/ports/graphics/libpcd/Makefile'
X# New ports collection makefile for:	libpcd
X# Date created:		2004-08-23
X# Whom:			Andrey Slusar <anray at inet.ua>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	libpcd
XPORTVERSION=	1.0.1
XCATEGORIES=	graphics
XMASTER_SITES=	http://dl.bytesex.org/releases/libpcd/
XDISTNAME=	${PORTNAME}_${PORTVERSION}
X
XMAINTAINER=	anray at inet.ua
XCOMMENT=	A library for reading PhotoCD images
X
XUSE_GMAKE=	yes
XINSTALLS_SHLIB=	yes
XWRKSRC=		${WRKDIR}/${DISTNAME:S/_/-/}
XMAKEFILE=	${WRKSRC}/GNUmakefile
X
X.include <bsd.port.mk>
END-of-/usr/ports/graphics/libpcd/Makefile
echo x - /usr/ports/graphics/libpcd/pkg-plist
sed 's/^X//' >/usr/ports/graphics/libpcd/pkg-plist << 'END-of-/usr/ports/graphics/libpcd/pkg-plist'
Xinclude/pcd.h
Xlib/libpcd.a
Xlib/libpcd.so
Xlib/libpcd.so.2
Xlib/libpcd.so.2.0.1
END-of-/usr/ports/graphics/libpcd/pkg-plist
echo x - /usr/ports/graphics/libpcd/distinfo
sed 's/^X//' >/usr/ports/graphics/libpcd/distinfo << 'END-of-/usr/ports/graphics/libpcd/distinfo'
XMD5 (libpcd_1.0.1.tar.gz) = c9127a6aae3c7510498990d82bb0b68a
XSIZE (libpcd_1.0.1.tar.gz) = 9293
END-of-/usr/ports/graphics/libpcd/distinfo
echo c - /usr/ports/graphics/libpcd/files
mkdir -p /usr/ports/graphics/libpcd/files > /dev/null 2>&1
echo x - /usr/ports/graphics/libpcd/files/patch-GNUmakefile
sed 's/^X//' >/usr/ports/graphics/libpcd/files/patch-GNUmakefile << 'END-of-/usr/ports/graphics/libpcd/files/patch-GNUmakefile'
X--- GNUmakefile.old	Mon Aug 23 21:10:15 2004
X+++ GNUmakefile	Mon Aug 23 21:10:38 2004
X@@ -1,11 +1,11 @@
X 
X DESTDIR	:=
X-prefix	:= /usr/local
X+prefix	:= $(PREFIX)
X 
X incdir	:= $(DESTDIR)$(prefix)/include
X libdir	:= $(DESTDIR)$(prefix)/lib
X 
X-CC	:= gcc
X+CC	?= gcc
X WARN	:= -Wall -Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith
X CFLAGS	?= -g -O2
X CFLAGS	+= $(WARN)
END-of-/usr/ports/graphics/libpcd/files/patch-GNUmakefile
exit
--- libpcd.port ends here ---

--- ida.diff begins here ---
diff -ruN /usr/ports/graphics/ida/Makefile ida/Makefile
--- /usr/ports/graphics/ida/Makefile	Sat Aug 21 16:26:23 2004
+++ ida/Makefile	Mon Aug 23 22:28:22 2004
@@ -18,12 +18,14 @@
 		png.5:${PORTSDIR}/graphics/png \
 		tiff.4:${PORTSDIR}/graphics/tiff \
 		ungif.5:${PORTSDIR}/graphics/libungif
+.if defined(WITH_PCD)
+LIB_DEPENDS+=	pcd.2:${PORTSDIR}/graphics/libpcd
+.endif
 
 USE_GMAKE=	yes
 USE_X_PREFIX=	yes
 USE_MOTIF=	yes
 USE_PERL5_BUILD=yes
-USE_REINPLACE=	yes
 WRKSRC=		${WRKDIR}/${DISTNAME:S/_/-/}
 MAKEFILE=	${WRKSRC}/GNUmakefile
 
@@ -32,12 +34,11 @@
 
 PLIST_FILES=	bin/ida lib/X11/app-defaults/Ida
 
-.include <bsd.port.pre.mk>
-
-post-patch:
-.if ${OSVERSION} < 500000
-	@${REINPLACE_CMD} -e 's|PRId32|"d"|g' -e 's|PRIx32|"x"|g' \
-		${WRKSRC}/tiff.c ${WRKSRC}/xwd.c
+.if !defined(WITH_PCD)
+pre-fetch:
+	@${ECHO}
+	@${ECHO} "- WITH_PCD - build with PhotoCD images support"
+	@${ECHO}
 .endif
 
 .if !defined(NOPORTDOCS)
@@ -48,4 +49,4 @@
 .endfor
 .endif
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff -ruN /usr/ports/graphics/ida/files/patch-loader.h ida/files/patch-loader.h
--- /usr/ports/graphics/ida/files/patch-loader.h	Thu Jan  1 03:00:00 1970
+++ ida/files/patch-loader.h	Sun Aug 22 00:10:48 2004
@@ -0,0 +1,13 @@
+--- loader.h.old	Sun Aug 22 00:07:12 2004
++++ loader.h	Sun Aug 22 00:10:29 2004
+@@ -1,4 +1,10 @@
+ #include "list.h"
++#ifndef PRId32
++#define PRId32 "d"
++#endif
++#ifndef PRIx32
++#define PRIx32 "x"
++#endif
+ #ifdef USE_X11
+ # include <X11/Intrinsic.h>
+ #endif
--- ida.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list