aboutsummaryrefslogtreecommitdiffstats
path: root/databases/p5-DBD-cego
diff options
context:
space:
mode:
authorpi <pi@FreeBSD.org>2017-11-09 03:11:26 +0800
committerpi <pi@FreeBSD.org>2017-11-09 03:11:26 +0800
commit936481bbf97f1ebf45fa4ea44a71a043554d4a18 (patch)
tree3551dc3e55a12c52c4b8156e31e96a9525411390 /databases/p5-DBD-cego
parentb2ad8ec903d8235e0be9bbdfb0a6636b45765f53 (diff)
downloadfreebsd-ports-gnome-936481bbf97f1ebf45fa4ea44a71a043554d4a18.tar.gz
freebsd-ports-gnome-936481bbf97f1ebf45fa4ea44a71a043554d4a18.tar.zst
freebsd-ports-gnome-936481bbf97f1ebf45fa4ea44a71a043554d4a18.zip
databases/p5-DBD-cego: fix build by removing obsolete patches
Diffstat (limited to 'databases/p5-DBD-cego')
-rw-r--r--databases/p5-DBD-cego/Makefile1
-rw-r--r--databases/p5-DBD-cego/files/patch-CegoXS.h19
-rw-r--r--databases/p5-DBD-cego/files/patch-Makefile.PL62
3 files changed, 1 insertions, 81 deletions
diff --git a/databases/p5-DBD-cego/Makefile b/databases/p5-DBD-cego/Makefile
index d0bf1a11a5ce..3d5c2ed86bda 100644
--- a/databases/p5-DBD-cego/Makefile
+++ b/databases/p5-DBD-cego/Makefile
@@ -18,6 +18,7 @@ LIB_DEPENDS= libcego.so:databases/cego
USES= gmake perl5
USE_PERL5= configure
CC:= ${CXX}
+CONFIGURE_ARGS+= --prefix=${PREFIX}
post-install:
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/DBD/Cego/Cego.so
diff --git a/databases/p5-DBD-cego/files/patch-CegoXS.h b/databases/p5-DBD-cego/files/patch-CegoXS.h
deleted file mode 100644
index bced7527f37a..000000000000
--- a/databases/p5-DBD-cego/files/patch-CegoXS.h
+++ /dev/null
@@ -1,19 +0,0 @@
---- CegoXS.h.orig 2010-11-21 01:25:27 UTC
-+++ CegoXS.h
-@@ -9,4 +9,16 @@
- #include "dbdimp.h"
- #include <dbd_xsh.h>
-
-+#ifndef sv_yes
-+#define sv_yes PL_sv_yes
-+#endif
-+
-+#ifndef sv_no
-+#define sv_no PL_sv_no
-+#endif
-+
-+#ifndef dirty
-+#define dirty PL_dirty
-+#endif
-+
- #endif
diff --git a/databases/p5-DBD-cego/files/patch-Makefile.PL b/databases/p5-DBD-cego/files/patch-Makefile.PL
deleted file mode 100644
index 6ef261c2dc4f..000000000000
--- a/databases/p5-DBD-cego/files/patch-Makefile.PL
+++ /dev/null
@@ -1,62 +0,0 @@
---- Makefile.PL.orig 2015-05-01 16:47:29 UTC
-+++ Makefile.PL
-@@ -28,49 +28,30 @@ $opt = { "help" => \&Usage, };
- Getopt::Long::GetOptions(
- $opt,
- "help",
-- "prefix=s",
- "verbose",
- ) || die Usage();
-
--if (! exists $opt->{'prefix'})
--{
-- print "Missing prefix, use option --prefix\n";
-- die Usage();
--}
--
--use vars qw($loadlibs);
--$loadlibs= "-L" . $opt->{'prefix'} . " -llfc";
- my $so = $Config{so};
-
- WriteMakefile(
- 'NAME' => 'DBD::Cego',
- 'VERSION_FROM' => 'Cego.pm',
-- 'PREREQ_PM' => {DBI => 1.03},
-+ 'PREREQ_PM' => {DBI => 1.633},
- 'OBJECT' => '$(O_FILES)',
-- 'INC' => '-I$(DBI_INSTARCH_DIR) -I' . $opt->{'prefix'} . '/include -I' . $opt->{'prefix'} . '/include',
-- 'MYEXTLIB' => $opt->{'prefix'} . "/lib/libcego.$so* "
-- . $opt->{'prefix'} . "/lib/liblfcxml.$so* "
-- . $opt->{'prefix'} . "/lib/liblfcbase.$so",
-- "CC" => "c++",
-- "LD" => "c++",
-- "XSPROTOARG" => "-noprototypes",
-+ 'INC' => '-I$(DBI_INSTARCH_DIR) -I/usr/local/include',
-+ 'MYEXTLIB' => '-lcego -llfcxml -llfcbase',
-+ 'CCFLAGS' => '-O2 -pipe -fno-strict-aliasing -fpermissive',
-+ 'LD' => '$(CC) -L/usr/local/lib',
- 'OPTIMIZE' => '-O3 -DNDEBUG=1',
-- 'XSOPT' => '-C++',
-- 'TYPEMAPS' => ['perlobject.map' ],
-- 'LICENSE' => 'gpl3',
-+ 'XSPROTOARG' => '-noprototypes',
-+ 'XSOPT' => '-C++',
-+ 'TYPEMAPS' => ['perlobject.map' ],
-+ 'LICENSE' => 'gpl3',
- 'clean' => { FILES => 'config.h' },
- );
-
- sub Usage {
-- print STDERR <<"USAGE";
--Usage: perl $0 [options]
--
--Possible options are:
--
-- --prefix=<prefix path> Use <prefix> for setting up the appropriate prefix path
-- to find cego libs and includes
--
--USAGE
-+ print STDERR "Usage: perl $0 [options]\n";
- exit 1;
- }
-