Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 11 Mar 2003 01:26:28 GMT
From:      "Philip M. Gollucci" <philip@p6m7g8.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/49097: New Port graphics/p5-GD2
Message-ID:  <200303110126.h2B1QSGU044169@p6m7g8.com>

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

>Number:         49097
>Category:       ports
>Synopsis:       New Port graphics/p5-GD2
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 10 22:30:05 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Philip M. Gollucci
>Release:        FreeBSD 5.0-RELEASE i386
>Organization:
P6M7G8 Consulting
>Environment:
System: FreeBSD p6m7g8.com 5.0-RELEASE FreeBSD 5.0-RELEASE #0: Thu Jan 16 22:16:53 GMT 2003 root@hollin.btc.adaptec.com:/usr/obj/usr/src/sys/GENERIC i386


>Description:
   This port was based directly on p5-GD

>How-To-Repeat:
>Fix:


--- p5-GD2.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:
#
#	p5-GD2
#	p5-GD2/files
#	p5-GD2/files/CVS
#	p5-GD2/files/CVS/Root
#	p5-GD2/files/CVS/Repository
#	p5-GD2/files/CVS/Entries
#	p5-GD2/files/CVS/Template
#	p5-GD2/files/patch-Makefile.PL
#	p5-GD2/Makefile
#	p5-GD2/distinfo
#	p5-GD2/pkg-descr
#	p5-GD2/pkg-plist
#
echo c - p5-GD2
mkdir -p p5-GD2 > /dev/null 2>&1
echo c - p5-GD2/files
mkdir -p p5-GD2/files > /dev/null 2>&1
echo c - p5-GD2/files/CVS
mkdir -p p5-GD2/files/CVS > /dev/null 2>&1
echo x - p5-GD2/files/CVS/Root
sed 's/^X//' >p5-GD2/files/CVS/Root << 'END-of-p5-GD2/files/CVS/Root'
X:pserver:anoncvs@anoncvs.FreeBSD.org:/home/ncvs
END-of-p5-GD2/files/CVS/Root
echo x - p5-GD2/files/CVS/Repository
sed 's/^X//' >p5-GD2/files/CVS/Repository << 'END-of-p5-GD2/files/CVS/Repository'
Xports/graphics/p5-GD/files
END-of-p5-GD2/files/CVS/Repository
echo x - p5-GD2/files/CVS/Entries
sed 's/^X//' >p5-GD2/files/CVS/Entries << 'END-of-p5-GD2/files/CVS/Entries'
X/patch-aa/1.7/Sat Jun 22 19:41:37 2002//
XD
END-of-p5-GD2/files/CVS/Entries
echo x - p5-GD2/files/CVS/Template
sed 's/^X//' >p5-GD2/files/CVS/Template << 'END-of-p5-GD2/files/CVS/Template'
X
XPR:		
XSubmitted by:	
XReviewed by:	
XApproved by:	
XObtained from:	
XMFC after:	
XCVS: ----------------------------------------------------------------------
XCVS: PR:              Fill this in if a GNATS PR is affected by the change.
XCVS: Submitted by:    Fill this in if someone else sent in the change.
XCVS: Reviewed by:     Fill this in if someone else reviewed your modification.
XCVS: Approved by:     Fill this in if you needed approval for this commit.
XCVS: Obtained from:   Fill this in if the change is from third party software.
XCVS: MFC after:       N [day[s]|week[s]|month[s]]
XCVS:	Fill in to get MFC notification later. (days assumed unless specified)
END-of-p5-GD2/files/CVS/Template
echo x - p5-GD2/files/patch-Makefile.PL
sed 's/^X//' >p5-GD2/files/patch-Makefile.PL << 'END-of-p5-GD2/files/patch-Makefile.PL'
X--- Makefile.PL.orig	Wed Nov 27 16:29:57 2002
X+++ Makefile.PL	Tue Mar 11 01:17:10 2003
X@@ -6,46 +6,23 @@
X 
X 
X # =====> PATHS: CHECK AND ADJUST <=====
X-my @INC     = qw(-I/usr/local/include -I/usr/local/include/gd);
X-my @LIBPATH = qw(-L/usr/lib/X11 -L/usr/X11R6/lib -L/usr/X11/lib -L/usr/local/lib);
X-my @LIBS    = qw(-lgd -lpng -lz);
X-
X-if ($^O eq 'VMS'){
X-  warn "This is a build on OpenVMS. In case of problems with the build\n";
X-  warn "do not bother Lincoln Stein but get in touch with\n";
X-  warn "Martin P.J. Zinser (zinser\@decus.de)\n\n";
X-
X-  if ($ENV{"LIB_ROOT"} eq "") {
X-    warn "Define lib_root as a concealed logical pointing to the\n";
X-    warn "Top directory where you have your libraries installed\n";
X-    warn "E.g. define/job/trans=conc lib_root public$device:[public.util.libs.]\n";
X-    warn "Also define the logical pubbin to point to the location\n";
X-    warn "of the object libraries\n";
X-    warn "Then re-invoke Makefile.PL\n";
X-    warn "Exiting now...\n";
X-    exit;
X-  }
X-
X-  @INC     = qw(-I/lib_root/gd -I/lib_root/libpng -I/lib_root/zlib);
X-  @LIBPATH = qw(-Lpubbin);
X-  @LIBS    = qw(-llibgd.olb -llibpng.olb -llibz.olb);
X-}
X+my @INC     = qw(-I/usr/local/include -I/usr/local/include/freetype2 -I/usr/X11R6/include -I/usr/X11R6/include/X11);
X+my @LIBPATH = qw(-L/usr/local/lib -L/usr/X11R6/lib);
X+my @LIBS    = qw(-lfreetype -ljpeg -lgd -lpng -lz);
X 
X # path to libgd
X warn "\n";
X-my $PREFIX = lc prompt('Where is libgd installed?','/usr/lib');
X+my $PREFIX = "/usr/local/lib";
X+
X unless ($PREFIX eq '/usr/lib') {
X   $PREFIX =~ s!/lib$!!;
X   unshift @INC,"-I$PREFIX/include";
X   unshift @LIBPATH,"-L$PREFIX/lib";
X }
X 
X-# FEATURE FLAGS
X-warn "\nPlease choose the features that match how libgd was built:\n";
X-
X-my $JPEG    = lc prompt('Build JPEG support?','y') eq 'y';
X-my $FT      = lc prompt('Build FreeType support?','y') eq 'y';
X-my $XPM     = $^O !~ /^freebsd|MSWin32$/ && lc prompt('Build XPM support?','y') eq 'y';
X+$JPEG=1;
X+$FT=1;
X+$XPM=1;
X 
X my $FCGI    = 0;   # set to 1 to build compatability with fastCGI
X 
X@@ -61,16 +38,13 @@
X push @INC, '-I/lib_root/ft2/include/freetype' if ($FT && $^O eq 'VMS');
X push @INC, '-I/X11' if ($XPM && $^O eq 'VMS');
X 
X-# FreeBSD 3.3 with libgd built from ports croaks if -lXpm is specified 
X-if ($^O ne 'freebsd' && $^O ne 'MSWin32') { 
X+if ($^O ne 'MSWin32') { 
X   push @LIBS,'-lX11','-lXpm' if $XPM; 
X } 
X 
X my $CAPI = defined $ExtUtils::MakeMaker::CAPI_support ? 'TRUE' : 'FALSE';
X-my $DEFINES = '';
X-$DEFINES    .= ' -DHAVE_JPEG' if $JPEG;
X-$DEFINES    .= ' -DHAVE_FT'   if $FT;
X-$DEFINES    .= ' -DHAVE_XPM'  if $XPM;
X++my $DEFINES = '-DHAVE_JPEG -DHAVE_TTF';
X++$DEFINES    .= ' -DHAVE_XPM' unless $^O eq 'MSWin32';
X $DEFINES    .= ' -DFCGI'      if $FCGI;
X 
X WriteMakefile(
END-of-p5-GD2/files/patch-Makefile.PL
echo x - p5-GD2/Makefile
sed 's/^X//' >p5-GD2/Makefile << 'END-of-p5-GD2/Makefile'
X# New ports collection makefile for:    p5-GD2
X# Date created:			        March 11, 2003
X# Whom:	      			        Philip M. Gollucci <philip@p6m7g8.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	GD
XPORTVERSION=	2.06
XCATEGORIES=	graphics perl5
XMASTER_SITES=	${MASTER_SITE_PERL_CPAN}
XMASTER_SITE_SUBDIR=	GD
XPKGNAMEPREFIX=	p5-
X
XMAINTAINER=	philip@p6m7g8.com
XCOMMENT=	A perl5 interface to Gd Graphics Library version2
X
XLIB_DEPENDS=	gd.2:${PORTSDIR}/graphics/gd2
X
XPERL_CONFIGURE=	yes
X
XMANPREFIX=	${PREFIX}/lib/perl5/${PERL_VERSION}
XMAN3=		GD.3 \
X		GD::Polyline.3
X
X.include <bsd.port.mk>
END-of-p5-GD2/Makefile
echo x - p5-GD2/distinfo
sed 's/^X//' >p5-GD2/distinfo << 'END-of-p5-GD2/distinfo'
XMD5 (GD-2.06.tar.gz) = 90025c06e22c91e22588cee1567d3c7c
END-of-p5-GD2/distinfo
echo x - p5-GD2/pkg-descr
sed 's/^X//' >p5-GD2/pkg-descr << 'END-of-p5-GD2/pkg-descr'
X       GD.pm is a port of Thomas Boutell's gd graphics library
X       (see below).  GD allows you to create color drawings using
X       a large number of graphics primitives, and emit the
X       drawings as GIF files.
END-of-p5-GD2/pkg-descr
echo x - p5-GD2/pkg-plist
sed 's/^X//' >p5-GD2/pkg-plist << 'END-of-p5-GD2/pkg-plist'
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/GD.pm
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/GD/Polyline.pm
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/qd.pl
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/GD/.packlist
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/GD/GD.bs
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/GD/GD.so
Xlib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/GD/autosplit.ix
X@dirrm lib/perl5/site_perl/%%PERL_VER%%/%%PERL_ARCH%%/auto/GD
END-of-p5-GD2/pkg-plist
exit
--- p5-GD2.shar ends here ---


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

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports-bugs" in the body of the message




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