2001-08-25 07:23:46 -04:00
|
|
|
#-*- mode: Fundamental; tab-width: 4; -*-
|
|
|
|
# ex:ts=4 sw=4 filetype=make:
|
2002-04-16 15:25:01 -04:00
|
|
|
# $OpenBSD: perl.port.mk,v 1.4 2002/04/16 19:25:07 espie Exp $
|
2001-08-25 07:23:46 -04:00
|
|
|
# Based on bsd.port.mk, originally by Jordan K. Hubbard.
|
|
|
|
# This file is in the public domain.
|
|
|
|
|
2001-10-03 04:53:18 -04:00
|
|
|
REGRESS_TARGET ?= test
|
2001-08-25 07:23:46 -04:00
|
|
|
MODPERL_configure= \
|
|
|
|
arch=`/usr/bin/perl -e 'use Config; print $$Config{archname}, "\n";'`; \
|
|
|
|
cd ${WRKSRC}; ${SETENV} ${CONFIGURE_ENV} \
|
|
|
|
/usr/bin/perl Makefile.PL \
|
|
|
|
PREFIX='$${${DESTDIRNAME}}${PREFIX}' \
|
|
|
|
INSTALLSITELIB='$${${DESTDIRNAME}}${PREFIX}/libdata/perl5/site_perl' \
|
|
|
|
INSTALLSITEARCH="\$${INSTALLSITELIB}/$$arch" \
|
|
|
|
INSTALLPRIVLIB='$${${DESTDIRNAME}}/usr/./libdata/perl5' \
|
|
|
|
INSTALLARCHLIB="\$${INSTALLPRIVLIB}/$$arch" \
|
|
|
|
INSTALLMAN1DIR='$${${DESTDIRNAME}}${PREFIX}/man/man1' \
|
2002-04-16 15:25:01 -04:00
|
|
|
INSTALLMAN3DIR='$${${DESTDIRNAME}}${PREFIX}/man/man3p' \
|
2001-08-25 07:23:46 -04:00
|
|
|
INSTALLBIN='$${PREFIX}/bin' \
|
|
|
|
INSTALLSCRIPT='$${INSTALLBIN}' ${CONFIGURE_ARGS}
|
|
|
|
|
|
|
|
|
|
|
|
MODPERL_pre_fake= \
|
|
|
|
${SUDO} mkdir -p ${WRKINST}`/usr/bin/perl -e 'use Config; print $$Config{installarchlib}, "\n";'`
|
2002-04-16 13:35:21 -04:00
|
|
|
|
|
|
|
P5SITE=libdata/perl5/site_perl
|
|
|
|
P5ARCH=${P5SITE}/${MACHINE_ARCH}-openbsd
|
|
|
|
SUBST_VARS+=P5ARCH P5SITE
|