freebsd-ports/textproc/bsdsort/Makefile
Mathieu Arnold 60d1a83c2a MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
  of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
  no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.

While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.

Also, replace some EXTRACT_SUFX occurences with USES=tar:*.

Checked by:	make fetch-urlall-list
With hat:	portmgr
Sponsored by:	Absolight
2015-05-14 10:15:04 +00:00

44 lines
931 B
Makefile

# Created by: Gabor Kovesdan <gabor@FreeBSD.org>
# $FreeBSD$
PORTNAME= sort
PORTVERSION= 20120716
CATEGORIES= textproc
MASTER_SITES= LOCAL/gabor
PKGNAMEPREFIX= bsd-
MAINTAINER= ports@FreeBSD.org
COMMENT= BSD-licensed version of sort
LICENSE= BSD2CLAUSE
WRKSRC= ${WRKDIR}/${PORTNAME}
MAKE_ENV+= BINDIR="${PREFIX}/bin" \
MANDIR="${MANPREFIX}/man/man" \
CATDIR="${MANPREFIX}/man/man" \
NLSDIR="${PREFIX}/share/nls" \
NO_WERROR="defined" \
MK_GNU_SORT="no"
USES= uidfix
CFLAGS+= -std=c99
PLIST_FILES= bin/sort \
bin/bsdsort \
bin/gnusort \
man/man1/sort.1.gz
OPTIONS_DEFINE= THREADS NLS
OPTIONS_DEFAULT= THREADS NLS
OPTIONS_SUB= yes
NLS_MAKE_ENV_OFF= WITHOUT_NLS=yes
NLS_PLIST_FILES= share/nls/hu_HU.ISO8859-2/sort.cat
THREADS_MAKE_ENV= WITH_THREADS=yes
post-install:
(cd ${STAGEDIR}${PREFIX}/bin && ${LN} -s sort bsdsort)
${LN} -s /usr/bin/sort ${STAGEDIR}${PREFIX}/bin/gnusort
.include <bsd.port.mk>