Deleted Added
full compact
bsd.port.mk (41001) bsd.port.mk (41073)
1#-*- mode: Fundamental; tab-width: 4; -*-
2# ex:ts=4
3#
1#-*- mode: Fundamental; tab-width: 4; -*-
2# ex:ts=4
3#
4# $Id: bsd.port.mk,v 1.294 1998/10/30 08:28:02 asami Exp $
4# $Id: bsd.port.mk,v 1.295 1998/11/08 10:29:52 asami Exp $
5# $NetBSD: $
6#
7# bsd.port.mk - 940820 Jordan K. Hubbard.
8# This file is in the public domain.
9#
10# Please view me with 4 column tabs!
11
12# There are two different types of "maintainers" in the whole ports

--- 18 unchanged lines hidden (view full) ---

31# These are meta-variables that are automatically set to the system
32# you are running on.
33#
34# ARCH - The architecture, as returned by "uname -m".
35# OPSYS - Portability clause. This is the operating system the
36# makefile is being used on. Automatically set to
37# "FreeBSD," "NetBSD," or "OpenBSD" as appropriate.
38# OSREL - The release version (numeric) of the operating system.
5# $NetBSD: $
6#
7# bsd.port.mk - 940820 Jordan K. Hubbard.
8# This file is in the public domain.
9#
10# Please view me with 4 column tabs!
11
12# There are two different types of "maintainers" in the whole ports

--- 18 unchanged lines hidden (view full) ---

31# These are meta-variables that are automatically set to the system
32# you are running on.
33#
34# ARCH - The architecture, as returned by "uname -m".
35# OPSYS - Portability clause. This is the operating system the
36# makefile is being used on. Automatically set to
37# "FreeBSD," "NetBSD," or "OpenBSD" as appropriate.
38# OSREL - The release version (numeric) of the operating system.
39# OSVERSION - The value of __FreeBSD_version.
39# PORTOBJFORMAT - The object format ("aout" or "elf").
40#
41# These variables are used to identify your port.
42#
43# DISTNAME - Name of port or distribution.
44# PKGNAME - Name of the package file to create if the DISTNAME
45# isn't really relevant for the port/package
46# (default: ${DISTNAME}).

--- 341 unchanged lines hidden (view full) ---

388# FORCE_PKG_REGISTER - If set, it will overwrite any existing package
389# registration information in ${PKG_DBDIR}/${PKGNAME}.
390# NO_DEPENDS - Don't verify build of dependencies.
391# NO_CHECKSUM - Don't verify the checksum. Typically used when
392# when you noticed the distfile you just fetched has
393# a different checksum and you intend to verify if
394# the port still works with it.
395
40# PORTOBJFORMAT - The object format ("aout" or "elf").
41#
42# These variables are used to identify your port.
43#
44# DISTNAME - Name of port or distribution.
45# PKGNAME - Name of the package file to create if the DISTNAME
46# isn't really relevant for the port/package
47# (default: ${DISTNAME}).

--- 341 unchanged lines hidden (view full) ---

389# FORCE_PKG_REGISTER - If set, it will overwrite any existing package
390# registration information in ${PKG_DBDIR}/${PKGNAME}.
391# NO_DEPENDS - Don't verify build of dependencies.
392# NO_CHECKSUM - Don't verify the checksum. Typically used when
393# when you noticed the distfile you just fetched has
394# a different checksum and you intend to verify if
395# the port still works with it.
396
397# Start of pre-makefile section.
398.if !defined(AFTERPORTMK)
399
396# Get the architecture
397ARCH!= uname -m
398
399# Get the operating system type
400OPSYS!= uname -s
401
402# Get the operating system revision
403OSREL!= uname -r | sed -e 's/[-(].*//'
400# Get the architecture
401ARCH!= uname -m
402
403# Get the operating system type
404OPSYS!= uname -s
405
406# Get the operating system revision
407OSREL!= uname -r | sed -e 's/[-(].*//'
404PLIST_SUB+= OSREL=${OSREL}
405
408
409# Get __FreeBSD_version
410OSVERSION!= sysctl -n kern.osreldate
411
406# Get the object format.
407PORTOBJFORMAT!= test -x /usr/bin/objformat && /usr/bin/objformat || echo aout
412# Get the object format.
413PORTOBJFORMAT!= test -x /usr/bin/objformat && /usr/bin/objformat || echo aout
408CONFIGURE_ENV+= PORTOBJFORMAT=${PORTOBJFORMAT}
409SCRIPTS_ENV+= PORTOBJFORMAT=${PORTOBJFORMAT}
410MAKE_ENV+= PORTOBJFORMAT=${PORTOBJFORMAT}
411PLIST_SUB+= PORTOBJFORMAT=${PORTOBJFORMAT}
412
413# If they exist, include Makefile.inc, then architecture/operating
414# system specific Makefiles, then local Makefile.local.
415
416.if exists(${.CURDIR}/../Makefile.inc)
417.include "${.CURDIR}/../Makefile.inc"
418.endif
419

--- 18 unchanged lines hidden (view full) ---

438PORTSDIR?= /usr/ports
439.endif
440LOCALBASE?= ${DESTDIR}/usr/local
441X11BASE?= ${DESTDIR}/usr/X11R6
442DISTDIR?= ${PORTSDIR}/distfiles
443_DISTDIR?= ${DISTDIR}/${DIST_SUBDIR}
444PACKAGES?= ${PORTSDIR}/packages
445TEMPLATES?= ${PORTSDIR}/templates
414
415# If they exist, include Makefile.inc, then architecture/operating
416# system specific Makefiles, then local Makefile.local.
417
418.if exists(${.CURDIR}/../Makefile.inc)
419.include "${.CURDIR}/../Makefile.inc"
420.endif
421

--- 18 unchanged lines hidden (view full) ---

440PORTSDIR?= /usr/ports
441.endif
442LOCALBASE?= ${DESTDIR}/usr/local
443X11BASE?= ${DESTDIR}/usr/X11R6
444DISTDIR?= ${PORTSDIR}/distfiles
445_DISTDIR?= ${DISTDIR}/${DIST_SUBDIR}
446PACKAGES?= ${PORTSDIR}/packages
447TEMPLATES?= ${PORTSDIR}/templates
446.if !defined(NO_WRKDIR)
447WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work
448.else
449WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}
450.endif
451.if defined(NO_WRKSUBDIR)
452WRKSRC?= ${WRKDIR}
453.else
454WRKSRC?= ${WRKDIR}/${DISTNAME}
455.endif
456
457.if exists(${.CURDIR}/patches.${ARCH}-${OPSYS})
458PATCHDIR?= ${.CURDIR}/patches.${ARCH}-${OPSYS}
459.elif exists(${.CURDIR}/patches.${OPSYS})
460PATCHDIR?= ${.CURDIR}/patches.${OPSYS}
461.elif exists(${.CURDIR}/patches.${ARCH})
462PATCHDIR?= ${.CURDIR}/patches.${ARCH}
463.else

--- 25 unchanged lines hidden (view full) ---

489.elif exists(${.CURDIR}/pkg.${OPSYS})
490PKGDIR?= ${.CURDIR}/pkg.${OPSYS}
491.elif exists(${.CURDIR}/pkg.${ARCH})
492PKGDIR?= ${.CURDIR}/pkg.${ARCH}
493.else
494PKGDIR?= ${.CURDIR}/pkg
495.endif
496
448
449.if exists(${.CURDIR}/patches.${ARCH}-${OPSYS})
450PATCHDIR?= ${.CURDIR}/patches.${ARCH}-${OPSYS}
451.elif exists(${.CURDIR}/patches.${OPSYS})
452PATCHDIR?= ${.CURDIR}/patches.${OPSYS}
453.elif exists(${.CURDIR}/patches.${ARCH})
454PATCHDIR?= ${.CURDIR}/patches.${ARCH}
455.else

--- 25 unchanged lines hidden (view full) ---

481.elif exists(${.CURDIR}/pkg.${OPSYS})
482PKGDIR?= ${.CURDIR}/pkg.${OPSYS}
483.elif exists(${.CURDIR}/pkg.${ARCH})
484PKGDIR?= ${.CURDIR}/pkg.${ARCH}
485.else
486PKGDIR?= ${.CURDIR}/pkg
487.endif
488
489.if defined(USE_IMAKE)
490USE_X_PREFIX= yes
491.endif
492.if defined(USE_X_PREFIX)
493USE_XLIB= yes
494.endif
495.if defined(USE_X_PREFIX)
496PREFIX?= ${X11BASE}
497.else
498PREFIX?= ${LOCALBASE}
499.endif
500
501.endif
502# End of pre-makefile section.
503
504# Start of post-makefile section.
505.if !defined(BEFOREPORTMK)
506
507.if !defined(NO_WRKDIR)
508WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}/work
509.else
510WRKDIR?= ${WRKDIRPREFIX}${.CURDIR}
511.endif
512.if defined(NO_WRKSUBDIR)
513WRKSRC?= ${WRKDIR}
514.else
515WRKSRC?= ${WRKDIR}/${DISTNAME}
516.endif
517
518PLIST_SUB+= OSREL=${OSREL}
519
520CONFIGURE_ENV+= PORTOBJFORMAT=${PORTOBJFORMAT}
521SCRIPTS_ENV+= PORTOBJFORMAT=${PORTOBJFORMAT}
522MAKE_ENV+= PORTOBJFORMAT=${PORTOBJFORMAT}
523PLIST_SUB+= PORTOBJFORMAT=${PORTOBJFORMAT}
524
497.if defined(MANCOMPRESSED)
498.if ${MANCOMPRESSED} != yes && ${MANCOMPRESSED} != no && \
499 ${MANCOMPRESSED} != maybe
500.BEGIN:
501 @${ECHO_MSG} "Error: Value of MANCOMPRESSED (is \"${MANCOMPRESSED}\") can only be \"yes\", \"no\" or \"maybe\"".
502 @${FALSE}
503.endif
504.endif
505
506.if defined(USE_IMAKE) && ${OPSYS} != OpenBSD && !defined(NO_INSTALL_MANPAGES)
507MANCOMPRESSED?= yes
508.else
509MANCOMPRESSED?= no
510.endif
511
525.if defined(MANCOMPRESSED)
526.if ${MANCOMPRESSED} != yes && ${MANCOMPRESSED} != no && \
527 ${MANCOMPRESSED} != maybe
528.BEGIN:
529 @${ECHO_MSG} "Error: Value of MANCOMPRESSED (is \"${MANCOMPRESSED}\") can only be \"yes\", \"no\" or \"maybe\"".
530 @${FALSE}
531.endif
532.endif
533
534.if defined(USE_IMAKE) && ${OPSYS} != OpenBSD && !defined(NO_INSTALL_MANPAGES)
535MANCOMPRESSED?= yes
536.else
537MANCOMPRESSED?= no
538.endif
539
512.if defined(USE_IMAKE)
513USE_X_PREFIX= yes
514.endif
515.if defined(USE_X_PREFIX)
516USE_XLIB= yes
517.endif
518.if defined(USE_X_PREFIX)
519PREFIX?= ${X11BASE}
520.else
521PREFIX?= ${LOCALBASE}
522.endif
523
524.if defined(USE_GMAKE)
525BUILD_DEPENDS+= gmake:${PORTSDIR}/devel/gmake
526.endif
527.if defined(USE_AUTOCONF)
528GNU_CONFIGURE= yes
529BUILD_DEPENDS+= autoconf:${PORTSDIR}/devel/autoconf
530.endif
531

--- 1256 unchanged lines hidden (view full) ---

1788 @${RM} -f ${PACKAGE_COOKIE}
1789.endif
1790
1791# Build a package but don't check the cookie for installation, also don't
1792# install package cookie
1793
1794.if !target(package-noinstall)
1795package-noinstall:
540.if defined(USE_GMAKE)
541BUILD_DEPENDS+= gmake:${PORTSDIR}/devel/gmake
542.endif
543.if defined(USE_AUTOCONF)
544GNU_CONFIGURE= yes
545BUILD_DEPENDS+= autoconf:${PORTSDIR}/devel/autoconf
546.endif
547

--- 1256 unchanged lines hidden (view full) ---

1804 @${RM} -f ${PACKAGE_COOKIE}
1805.endif
1806
1807# Build a package but don't check the cookie for installation, also don't
1808# install package cookie
1809
1810.if !target(package-noinstall)
1811package-noinstall:
1812.if !defined(NO_WRKDIR)
1813 @${MKDIR} ${WRKDIR}
1814.endif
1796 @cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} PACKAGE_NOINSTALL=yes real-package
1815 @cd ${.CURDIR} && ${MAKE} ${.MAKEFLAGS} PACKAGE_NOINSTALL=yes real-package
1816 @${RM} ${TMPPLIST}
1817 -@${RMDIR} ${WRKDIR}
1797.endif
1798
1799# Loop through several options for package building
1800
1801.if !target(package-loop)
1802.if defined(LOOP_VAR)
1803package-loop:
1804.if !exists(${PACKAGE_COOKIE})

--- 379 unchanged lines hidden (view full) ---

2184.if !target(depend)
2185depend:
2186.endif
2187
2188# Same goes for tags
2189.if !target(tags)
2190tags:
2191.endif
1818.endif
1819
1820# Loop through several options for package building
1821
1822.if !target(package-loop)
1823.if defined(LOOP_VAR)
1824package-loop:
1825.if !exists(${PACKAGE_COOKIE})

--- 379 unchanged lines hidden (view full) ---

2205.if !target(depend)
2206depend:
2207.endif
2208
2209# Same goes for tags
2210.if !target(tags)
2211tags:
2212.endif
2213
2214.endif
2215# End of post-makefile section.