Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Feb 2006 19:16:52 +0100
From:      "Michael Winking" <mwfp@foldl.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        mwfp@foldl.net
Subject:   ports/93303: New port: graphics/ocaml-gd4o GD library bindings for ocaml
Message-ID:  <200602131814.k1DIEKJ1027652@alfa12.isp-service.biz>
Resent-Message-ID: <200602131820.k1DIK6ul005123@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         93303
>Category:       ports
>Synopsis:       New port: graphics/ocaml-gd4o GD library bindings for ocaml
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Feb 13 18:20:05 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Michael Winking <mwfp@foldl.net>
>Release:        FreeBSD 5.4-RELEASE i386
>Organization:
>Environment:
System: FreeBSD Caesar.Imperium.Romanum 5.4-RELEASE FreeBSD 5.4-RELEASE #3: Mon Oct 17 22:30:51 CEST 2005 root@Caesar.Imperium.Romanum:/usr/src/sys/i386/compile/CAESAR i386


>Description:
	New port: graphics/ocaml-gd4o GD library bindings for ocaml
>How-To-Repeat:
	N/A
>Fix:
--- ocaml-gd4o.shar 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:
#
#	ocaml-gd4o
#	ocaml-gd4o/Makefile
#	ocaml-gd4o/pkg-descr
#	ocaml-gd4o/distinfo
#	ocaml-gd4o/files
#	ocaml-gd4o/files/patch-Makefile
#	ocaml-gd4o/pkg-deinstall
#	ocaml-gd4o/pkg-install
#
echo c - ocaml-gd4o
mkdir -p ocaml-gd4o > /dev/null 2>&1
echo x - ocaml-gd4o/Makefile
sed 's/^X//' >ocaml-gd4o/Makefile << 'END-of-ocaml-gd4o/Makefile'
X# ex:ts=8
X# New ports collection makefile for:	ocaml-gd4o
X# Date created:			Feb 13, 2006
X# Whom:				Michael Winking <mwfp@foldl.net>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	gd4o
XPORTVERSION=	1.0a5
XCATEGORIES=	graphics
XMASTER_SITES=  ${MASTER_SITE_SOURCEFORGE}
XMASTER_SITE_SUBDIR= gd4o
XPKGNAMEPREFIX=	ocaml-
XDISTNAME=	${PORTNAME}-${PORTVERSION}
X
XMAINTAINER=	mwfp@foldl.net
XCOMMENT=	Objective Caml interface to the GD graphics library
X
XLIB_DEPENDS=	gd.4:${PORTSDIR}/graphics/gd \
X		jpeg.9:${PORTSDIR}/graphics/jpeg \
X		freetype.9:${PORTSDIR}/print/freetype2
X
XMAKE_ENV= \
X	LIBDIRS="-L${LOCALBASE}/lib -L${X11BASE}/lib" \
X	INCDIRS="-I${LOCALBASE}/include -I${X11BASE}/include"
XUSE_GMAKE=	yes
XALL_TARGET=	all opt
X
XDOCSDIR=        ${PREFIX}/share/doc/${PKGNAMEPREFIX}${PORTNAME}
X
X.if !defined(NOPORTDOCS)
XALL_TARGET+=	docs
XPORTDOCS=       BUGS CHANGES INSTALL LICENSE README README.ocamlgd TODO doc
X.endif
X
Xpost-install:
X.if !defined(NOPORTDOCS)
X	@${ECHO_MSG} -n ">> Installing documentation..."
X	@${MKDIR} ${DOCSDIR}
X	@cd ${WRKSRC} && ${FIND} ${PORTDOCS} \
X	  | ${CPIO} -pdmu -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR} > /dev/null 2>&1
X	@${ECHO_MSG} " [DONE]"
X.endif
X	@${FIND} ${PREFIX}/lib/ocaml/site-lib/gd -type f | \
X		${SED} 's,^${PREFIX}/,,' >> ${TMPPLIST}
X#	@${ECHO_CMD} "@dirrm lib/ocaml/site-lib/gd" >> ${TMPPLIST}
X
Xpre-deinstall:
X	@ocamlfind remove gd
X.include <bsd.port.mk>
END-of-ocaml-gd4o/Makefile
echo x - ocaml-gd4o/pkg-descr
sed 's/^X//' >ocaml-gd4o/pkg-descr << 'END-of-ocaml-gd4o/pkg-descr'
XGD4O is an OCaml interface to the GD graphics library.
XIt is based on OCamlGD 0.7, developed by Shawn Wagner.
X
XWWW: http://gushee.net/matt/software/gd4o/
END-of-ocaml-gd4o/pkg-descr
echo x - ocaml-gd4o/distinfo
sed 's/^X//' >ocaml-gd4o/distinfo << 'END-of-ocaml-gd4o/distinfo'
XMD5 (gd4o-1.0a5.tar.gz) = b5aeb9c246b5e072803eb9b3112350a0
XSHA256 (gd4o-1.0a5.tar.gz) = fa10b60a785e6734b6ac1b5a762f496b925502cfc848381cae7dfb75fe547eed
XSIZE (gd4o-1.0a5.tar.gz) = 885735
END-of-ocaml-gd4o/distinfo
echo c - ocaml-gd4o/files
mkdir -p ocaml-gd4o/files > /dev/null 2>&1
echo x - ocaml-gd4o/files/patch-Makefile
sed 's/^X//' >ocaml-gd4o/files/patch-Makefile << 'END-of-ocaml-gd4o/files/patch-Makefile'
X--- Makefile.orig	Mon Feb 13 17:41:13 2006
X+++ Makefile	Mon Feb 13 17:41:39 2006
X@@ -18,8 +18,8 @@
X JPEG_LIB = -ljpeg
X FT2_LIB = -lfreetype
X CC=gcc
X-CINCLUDES=-I$(OCAMLLIB) -I/usr/include 
X-LIBS=-lgd -lpng -lz $(JPEG_LIB) $(FT2_LIB)
X+CINCLUDES=$(INCDIRS) -I$(OCAMLLIB) -I/usr/include 
X+LIBS=$(LIBDIRS) -lgd -lpng -lz $(JPEG_LIB) $(FT2_LIB)
X ifdef JPEG_LIB
X JPEG_FLAG = -DHAVE_JPEG
X endif
END-of-ocaml-gd4o/files/patch-Makefile
echo x - ocaml-gd4o/pkg-deinstall
sed 's/^X//' >ocaml-gd4o/pkg-deinstall << 'END-of-ocaml-gd4o/pkg-deinstall'
X#!/bin/sh
X
Xif [ "$2" != "POST-DEINSTALL" ]; then
X    exit 0
Xfi
X
Xsed -i -e "s,${PKG_PREFIX}/lib/ocaml/site-lib/gd,,g" ${PKG_PREFIX}/lib/ocaml/ld.conf
Xexit 0
END-of-ocaml-gd4o/pkg-deinstall
echo x - ocaml-gd4o/pkg-install
sed 's/^X//' >ocaml-gd4o/pkg-install << 'END-of-ocaml-gd4o/pkg-install'
X#!/bin/sh
X
Xif [ "$2" != "POST-INSTALL" ]; then
X    exit 0
Xfi
X
Xsed -i -e "s,${PKG_PREFIX}/lib/ocaml/ld/site-lib/gd,,g" ${PKG_PREFIX}/lib/ocaml/ld.conf
Xecho "${PKG_PREFIX}/lib/ocaml/site-lib/gd" >> ${PKG_PREFIX}/lib/ocaml/ld.conf
Xexit 0
END-of-ocaml-gd4o/pkg-install
exit
--- ocaml-gd4o.shar ends here ---


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200602131814.k1DIEKJ1027652>