pkgsrc-wip/lorder/Makefile
Jeremy C. Reed 8723071b69 lorder helps set up the correct ordering of files in an archive.
It outputs a list of filenames where the first file contains a symbol
which is defined by the second file (which can then be sorted by tsort).

This lorder is the script included with NetBSD.

I packaged this last October 2003.
2004-06-11 17:23:54 +00:00

42 lines
1.1 KiB
Makefile

# $NetBSD: Makefile,v 1.1.1.1 2004/06/11 17:23:54 jeremy-c-reed Exp $
#
# XXX This version is the CVS revision number from NetBSD's
# usr.bin/lorder/lorder.sh. It also was known as 8.1 back in 1993.
DISTNAME= lorder-1.12
CATEGORIES= devel
MASTER_SITES= # empty
DISTFILES= # empty
MAINTAINER= reed@reedmedia.net
#HOMEPAGE=
COMMENT= Determine interdependencies in a list of object files
EXTRACT_ONLY= # empty
NO_CHECKSUM= YES
NO_CONFIGURE= YES
NO_BUILD= YES
.include "../../mk/bsd.prefs.mk"
# XXX This would be a good place to use PREFER_PKGSRC
.if empty(OPSYS:M*BSD)
DEPENDS+= mktemp>=1.4:../../sysutils/mktemp
MKTEMP= ${LOCALBASE}/bin/mktemp
.else
MKTEMP= mktemp
.endif
# This also uses nm(1) which could be from binutils package.
# Maybe a DEPENDS for it too? Then again, nobody would use lorder
# unless they had binutils, I assume.
post-patch:
${SED} -e "s:MKTEMP=mktemp:MKTEMP=${MKTEMP}:" \
< ${FILESDIR}/lorder.sh > ${WRKDIR}/lorder
do-install:
${INSTALL_SCRIPT} ${WRKDIR}/lorder ${PREFIX}/bin
${INSTALL_MAN} ${FILESDIR}/lorder.1 ${PREFIX}/man/man1/
.include "../../mk/bsd.pkg.mk"