aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorswills <swills@FreeBSD.org>2011-08-08 08:56:34 +0800
committerswills <swills@FreeBSD.org>2011-08-08 08:56:34 +0800
commit77c5ce7b518d383639459c1445dd7690775e7813 (patch)
tree2fed44283d7a54869eff080ec45be4b5edc22b9d
parent3fcf3d114471e79d2c47cb6fcac505eeb97a41d4 (diff)
downloadfreebsd-ports-gnome-77c5ce7b518d383639459c1445dd7690775e7813.tar.gz
freebsd-ports-gnome-77c5ce7b518d383639459c1445dd7690775e7813.tar.zst
freebsd-ports-gnome-77c5ce7b518d383639459c1445dd7690775e7813.zip
- Fix fetch
- Update to 0.4.3 - Convert to slave of graphics/ming
-rw-r--r--graphics/p5-ming/Makefile84
-rw-r--r--graphics/p5-ming/files/patch-Makefile.PL51
-rw-r--r--graphics/p5-ming/files/patch-Makefile.in11
-rw-r--r--graphics/p5-ming/pkg-descr2
-rw-r--r--graphics/p5-ming/pkg-plist18
5 files changed, 99 insertions, 67 deletions
diff --git a/graphics/p5-ming/Makefile b/graphics/p5-ming/Makefile
index 2621b9245000..d6a8633f7c0d 100644
--- a/graphics/p5-ming/Makefile
+++ b/graphics/p5-ming/Makefile
@@ -6,47 +6,55 @@
#
PORTNAME= ming
-PORTVERSION= 0.3.0
-PORTREVISION= 2
+PORTREVISION= 0
CATEGORIES= graphics perl5
-MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTNAME}-${PORTVERSION}
PKGNAMEPREFIX= p5-
-DISTNAME= ${PORTNAME}-perl-${PORTVERSION}
+PKGNAMESUFFIX=
MAINTAINER= ports@FreeBSD.org
COMMENT= Perl5 module for Ming which allows you to create Flash 4/5 movies
-BROKEN= does not fetch
-
-LIB_DEPENDS= ming.4:${PORTSDIR}/graphics/ming
-
-WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}/perl_ext
-
-PERL_CONFIGURE= yes
-CONFIGURE_ENV= LOCALBASE="${LOCALBASE}"
-
-MAN3= SWF.3 \
- SWF::Action.3 \
- SWF::Bitmap.3 \
- SWF::Button.3 \
- SWF::Constants.3 \
- SWF::DisplayItem.3 \
- SWF::Morph.3 \
- SWF::Movie.3 \
- SWF::Shape.3 \
- SWF::Sound.3 \
- SWF::Sprite.3 \
- SWF::TextField.3 \
- SWF::VideoStream.3
-
-post-patch:
- @${ECHO_CMD} -n > ${WRKSRC}/../configure.in
- @${LN} -sf ${LOCALBASE}/include/ming ${WRKSRC}/../src
-
-post-install:
-.if !defined(NOPORTDOCS)
- @${MKDIR} ${EXAMPLESDIR}
- ${INSTALL_DATA} ${WRKSRC}/examples/*.* ${EXAMPLESDIR}
-.endif
-
-.include <bsd.port.mk>
+SLAVE_PORT= p5
+MASTERDIR= ${.CURDIR}/../../graphics/ming
+PLIST= ${.CURDIR}/pkg-plist
+CONFIGURE_ARGS+= --enable-perl
+INSTALL_WRKSRC= ${WRKSRC}/perl_ext
+PATCHDIR= ${.CURDIR}/files
+USE_PERL5= yes
+
+MAN3= SWF.3 \
+ SWF::Action.3 \
+ SWF::BinaryData.3 \
+ SWF::Bitmap.3 \
+ SWF::Blur.3 \
+ SWF::BrowserFont.3 \
+ SWF::Button.3 \
+ SWF::ButtonRecord.3 \
+ SWF::CXform.3 \
+ SWF::Character.3 \
+ SWF::Constants.3 \
+ SWF::DisplayItem.3 \
+ SWF::Fill.3 \
+ SWF::Filter.3 \
+ SWF::FilterMatrix.3 \
+ SWF::Font.3 \
+ SWF::FontCharacter.3 \
+ SWF::FontCollection.3 \
+ SWF::Gradient.3 \
+ SWF::InitAction.3 \
+ SWF::Matrix.3 \
+ SWF::Morph.3 \
+ SWF::Movie.3 \
+ SWF::MovieClip.3 \
+ SWF::PrebuiltClip.3 \
+ SWF::Shadow.3 \
+ SWF::Shape.3 \
+ SWF::Sound.3 \
+ SWF::SoundInstance.3 \
+ SWF::SoundStream.3 \
+ SWF::Sprite.3 \
+ SWF::Text.3 \
+ SWF::TextField.3 \
+ SWF::VideoStream.3
+
+.include "${MASTERDIR}/Makefile"
diff --git a/graphics/p5-ming/files/patch-Makefile.PL b/graphics/p5-ming/files/patch-Makefile.PL
index a7a2008c1727..85e3a921e587 100644
--- a/graphics/p5-ming/files/patch-Makefile.PL
+++ b/graphics/p5-ming/files/patch-Makefile.PL
@@ -1,34 +1,33 @@
---- Makefile.PL.orig Wed Feb 1 15:45:17 2006
-+++ Makefile.PL Mon Apr 17 23:31:32 2006
-@@ -78,25 +78,25 @@
+--- perl_ext/Makefile.PL.orig 2011-08-07 14:41:33.558563705 -0400
++++ perl_ext/Makefile.PL 2011-08-07 14:44:13.341563378 -0400
+@@ -146,11 +146,9 @@
clean => {
FILES => "@do_clean",
},
-- 'MYEXTLIB' => $MING_DIR . '/libming.a',
-+# 'MYEXTLIB' => $MING_DIR . '/libming.a',
+- 'MYEXTLIB' => $MING_TOP_BUILDDIR . '/src/.libs/libming.a',
'OBJECT' => "$XS_OBJECTS",
- #'LIBS' => [ "-lz" ],
-- 'LIBS' => [ $libs ],
-+ 'LIBS' => ["-L$ENV{LOCALBASE}/lib -lming"],
- );
+ 'LDFROM' => "$LD_OBJECTS",
+ 'INC' => "-I$MING_TOP_SRCDIR/src -I$BUILDDIR -I$MING_TOP_BUILDDIR/src -I$SRCDIR",
+- 'LIBS' => [ $libs ],
+ 'PM' => $PM_HASH,
+ 'MAN3PODS' => $MAN3_HASH,
+ 'TYPEMAPS' => ["$SRCDIR/typemap"],
+@@ -164,17 +162,7 @@
- sub MY::install {
- my $self = shift;
- write_myconfig_file($self->{INSTALLSITEARCH});
-
-- for (qw(ming.h libming.a)){
-- $self->{PM}->{"$MING_DIR/$_"} = '$(INST_ARCHLIB)' . "/auto/SWF/include/$_";
+ sub ming_is_compiled
+ {
+- my $libming = $MING_TOP_BUILDDIR."/src/.libs/libming.a";
+-
+- if ( -e $libming )
+- {
+- return 1;
- }
-+# for (qw(ming.h libming.a)){
-+# $self->{PM}->{"$MING_DIR/$_"} = '$(INST_ARCHLIB)' . "/auto/SWF/include/$_";
-+# }
- $self->{PM}->{'perl_swf.h'} = '$(INST_ARCHLIB)' . "/auto/SWF/include/perl_swf.h";
- return $self->MM::install;
- }
-
- sub ming_is_compiled{
-- return undef unless (-e "$MING_DIR/libming.a");
-+# return undef unless (-e "$MING_DIR/libming.a");
- return 1;
+- else
+- {
+- print "$libming doesn't exist.\n";
+- return undef;
+- }
++ return 1;
}
+ # unused. At least it should take into account the configure flags by
diff --git a/graphics/p5-ming/files/patch-Makefile.in b/graphics/p5-ming/files/patch-Makefile.in
new file mode 100644
index 000000000000..5d6451da783e
--- /dev/null
+++ b/graphics/p5-ming/files/patch-Makefile.in
@@ -0,0 +1,11 @@
+--- perl_ext/Makefile.in.orig 2011-08-07 21:32:30.000000000 +0000
++++ perl_ext/Makefile.in 2011-08-07 21:32:48.000000000 +0000
+@@ -391,7 +391,7 @@
+ $(MAKE) -f Makefile.perl
+
+ install: Makefile.perl
+- $(MAKE) -f Makefile.perl install PREFIX=$(prefix)
++ $(MAKE) -f Makefile.perl pure_install PREFIX=$(prefix)
+
+ Makefile.perl: Makefile.PL
+ srcdir=$(srcdir) builddir=$(abs_builddir) $(PERL) $< PREFIX=$(prefix) FIRST_MAKEFILE=Makefile.perl
diff --git a/graphics/p5-ming/pkg-descr b/graphics/p5-ming/pkg-descr
index 081f44d0b226..18b3ece94512 100644
--- a/graphics/p5-ming/pkg-descr
+++ b/graphics/p5-ming/pkg-descr
@@ -1,2 +1,4 @@
This is a Perl5 module for the Ming library.
Ming allows you to create Flash 4/5 (TM) movies.
+
+WWW: http://www.libming.org/
diff --git a/graphics/p5-ming/pkg-plist b/graphics/p5-ming/pkg-plist
index 59625b3d3a73..15d70062f473 100644
--- a/graphics/p5-ming/pkg-plist
+++ b/graphics/p5-ming/pkg-plist
@@ -1,15 +1,29 @@
%%SITE_PERL%%/%%PERL_ARCH%%/SWF.pm
-%%SITE_PERL%%/%%PERL_ARCH%%/SWF/.cvsignore
%%SITE_PERL%%/%%PERL_ARCH%%/SWF/Action.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/SWF/BinaryData.pm
%%SITE_PERL%%/%%PERL_ARCH%%/SWF/Bitmap.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/SWF/Blur.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/SWF/BrowserFont.pm
%%SITE_PERL%%/%%PERL_ARCH%%/SWF/Button.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/SWF/ButtonRecord.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/SWF/CXform.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/SWF/Character.pm
%%SITE_PERL%%/%%PERL_ARCH%%/SWF/Constants.pm
%%SITE_PERL%%/%%PERL_ARCH%%/SWF/DisplayItem.pm
%%SITE_PERL%%/%%PERL_ARCH%%/SWF/Fill.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/SWF/Filter.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/SWF/FilterMatrix.pm
%%SITE_PERL%%/%%PERL_ARCH%%/SWF/Font.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/SWF/FontCharacter.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/SWF/FontCollection.pm
%%SITE_PERL%%/%%PERL_ARCH%%/SWF/Gradient.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/SWF/InitAction.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/SWF/Matrix.pm
%%SITE_PERL%%/%%PERL_ARCH%%/SWF/Morph.pm
%%SITE_PERL%%/%%PERL_ARCH%%/SWF/Movie.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/SWF/MovieClip.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/SWF/PrebuiltClip.pm
+%%SITE_PERL%%/%%PERL_ARCH%%/SWF/Shadow.pm
%%SITE_PERL%%/%%PERL_ARCH%%/SWF/Shape.pm
%%SITE_PERL%%/%%PERL_ARCH%%/SWF/Sound.pm
%%SITE_PERL%%/%%PERL_ARCH%%/SWF/SoundInstance.pm
@@ -21,7 +35,6 @@
%%SITE_PERL%%/%%PERL_ARCH%%/auto/SWF/.packlist
%%SITE_PERL%%/%%PERL_ARCH%%/auto/SWF/SWF.bs
%%SITE_PERL%%/%%PERL_ARCH%%/auto/SWF/SWF.so
-%%SITE_PERL%%/%%PERL_ARCH%%/auto/SWF/include/perl_swf.h
%%PORTDOCS%%%%EXAMPLESDIR%%/action.cgi
%%PORTDOCS%%%%EXAMPLESDIR%%/alphafill.cgi
%%PORTDOCS%%%%EXAMPLESDIR%%/animation.cgi
@@ -36,6 +49,5 @@
%%PORTDOCS%%%%EXAMPLESDIR%%/textfield.cgi
%%PORTDOCS%%%%EXAMPLESDIR%%/video.cgi
%%PORTDOCS%%@dirrm %%EXAMPLESDIR%%
-@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/SWF/include
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/auto/SWF
@dirrm %%SITE_PERL%%/%%PERL_ARCH%%/SWF