openbsd-ports/infrastructure/mk/perl.port.mk
espie bc8a492475 Cut out some parts of bsd.port.mk into separate modules.
This is work-in-progress. Supplemental hooks will be added when they
become necessary.

The goal is to permit separate subsystems to tweak the package building
process slightly. This should help e.g., python or qt2, for instance.

Documentation will come when it's tested more thoroughly...
2001-08-25 11:23:46 +00:00

24 lines
1001 B
Makefile

#-*- mode: Fundamental; tab-width: 4; -*-
# ex:ts=4 sw=4 filetype=make:
# $OpenBSD: perl.port.mk,v 1.1 2001/08/25 11:23:46 espie Exp $
# Based on bsd.port.mk, originally by Jordan K. Hubbard.
# This file is in the public domain.
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' \
INSTALLMAN3DIR='$${${DESTDIRNAME}}${PREFIX}/man/man3' \
INSTALLBIN='$${PREFIX}/bin' \
INSTALLSCRIPT='$${INSTALLBIN}' ${CONFIGURE_ARGS}
MODPERL_pre_fake= \
${SUDO} mkdir -p ${WRKINST}`/usr/bin/perl -e 'use Config; print $$Config{installarchlib}, "\n";'`