1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00
freebsd-ports/sysutils/cd9660_unicode/Makefile
Joe Marcus Clarke 0ecea7d9d6 Substitute BROKEN with IGNORE in cases where the port requires the src tree
to be present, or does not compile on certain versions of FreeBSD.  This
will potentially avoid needless compilations on bento, and has the added
benefit of improving certain reporting tools.  To most users, this change
is a no-op.

PR:		61090
Submitted by:	linimon
2004-01-10 07:18:55 +00:00

58 lines
1.6 KiB
Makefile

# Ports collection makefile for: cd9660_unicode
# Date created: 13 February 2001
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= cd9660_unicode
PORTVERSION= 1.0
CATEGORIES= sysutils
MASTER_SITES= ${MASTER_SITE_LOCAL}
MASTER_SITE_SUBDIR= sobomax
MAINTAINER= ports@FreeBSD.org
COMMENT= A kernel driver for reading CD disks with non-English filenames
NO_PACKAGE= Should be in sync with the kernel to work correctly
SRCPREFIX?= /usr/src
PKGMESSAGE= ${WRKDIR}/.MESSAGE
ENCODINGS= cd ${WRKSRC}/templates && ${ECHO_CMD} [^C]* | \
${SED} 's|\.txt|,|g'
FMT= /usr/bin/fmt
FLAG!= /usr/bin/grep -e cd9660_wchar2char \
${SRCPREFIX}/sys/isofs/cd9660/cd9660_util.c 2>/dev/null || \
/usr/bin/true
.if (${FLAG} == "")
IGNORE= "your FreeBSD version is not supported. Please update to the latest version and try again"
.endif
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 501109
IGNORE= is obsolete. See mount_cd9660(8)
.endif
pre-everything::
@if [ ! -d /sys -o ! -d ${SRCPREFIX}/sys ]; then \
${ECHO_MSG} "****************************************" ; \
${ECHO_MSG} " You need to extract kernel source tree" ; \
${ECHO_MSG} " before you build this package..." ; \
${ECHO_MSG} "****************************************" ; \
${FALSE} ; \
fi
pre-install:
@ENCODINGS=`${ENCODINGS}` && \
ENCODINGS=`${ECHO_CMD} $${ENCODINGS} | ${SED} 's|,$$||'` && \
${SED} "s|%%PREFIX%%|${PREFIX}|g; s|%%ENCODINGS%%|$${ENCODINGS}|" \
${PKGDIR}/pkg-message | ${FMT} > ${PKGMESSAGE}
${MKDIR} ${PREFIX}/lib/cd9660_unicode
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>