Fix compilation:

- do not hardcode /usr/local, use LOCALBASE
- patch Makefile.PL to use LDFLAGS, CPPFLAGS from CONFIGURE_ENV
This commit is contained in:
avsm 2001-02-06 10:08:38 +00:00
parent cafa37ef68
commit 95b23a7286
2 changed files with 8 additions and 5 deletions

View File

@ -1,4 +1,4 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/01/19 03:21:10 kevlo Exp $
# $OpenBSD: Makefile,v 1.2 2001/02/06 10:08:38 avsm Exp $
DISTNAME= Audio-CD-0.04
PKGNAME= p5-${DISTNAME}
@ -16,6 +16,8 @@ MASTER_SITES= ${MASTER_SITE_PERL_CPAN}
MASTER_SITE_SUBDIR= Audio
CONFIGURE_STYLE= perl
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
LIB_DEPENDS= cdaudio.1::audio/libcdaudio

View File

@ -1,11 +1,12 @@
--- Makefile.PL.orig Wed May 17 05:12:52 2000
+++ Makefile.PL Mon Jan 29 14:42:08 2001
@@ -7,7 +7,7 @@
--- Makefile.PL.orig Tue May 16 23:12:52 2000
+++ Makefile.PL Tue Feb 6 03:05:28 2001
@@ -7,7 +7,8 @@ WriteMakefile(
'macro' => {
CVSROOT => 'modperl.com:/local/cvs_repository',
},
- 'LIBS' => ["-lcdaudio"],
+ 'LIBS' => "-L/usr/local/lib -lcdaudio",
+ 'LIBS' => [ "$ENV{LDFLAGS} -lcdaudio" ],
+ 'INC' => $ENV{CPPFLAGS},
DEFINE => '-g',
OBJECT => 'cddb_lookup.o CD.o',
);