2001-02-13 14:56:34 +01:00
|
|
|
# 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
|
|
|
|
|
2003-07-29 11:12:37 +02:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-03-07 07:14:21 +01:00
|
|
|
COMMENT= A kernel driver for reading CD disks with non-English filenames
|
2001-02-13 14:56:34 +01:00
|
|
|
|
|
|
|
NO_PACKAGE= Should be in sync with the kernel to work correctly
|
|
|
|
|
|
|
|
SRCPREFIX?= /usr/src
|
|
|
|
PKGMESSAGE= ${WRKDIR}/.MESSAGE
|
2002-01-29 12:58:52 +01:00
|
|
|
ENCODINGS= cd ${WRKSRC}/templates && ${ECHO_CMD} [^C]* | \
|
2001-02-13 14:56:34 +01:00
|
|
|
${SED} 's|\.txt|,|g'
|
|
|
|
FMT= /usr/bin/fmt
|
2001-03-02 20:09:35 +01:00
|
|
|
FLAG!= /usr/bin/grep -e cd9660_wchar2char \
|
2001-03-03 09:49:34 +01:00
|
|
|
${SRCPREFIX}/sys/isofs/cd9660/cd9660_util.c 2>/dev/null || \
|
2001-03-02 20:09:35 +01:00
|
|
|
/usr/bin/true
|
2001-02-13 14:56:34 +01:00
|
|
|
|
2001-03-02 20:09:35 +01:00
|
|
|
.if (${FLAG} == "")
|
2004-01-10 08:18:55 +01:00
|
|
|
IGNORE= "your FreeBSD version is not supported. Please update to the latest version and try again"
|
2001-02-13 14:56:34 +01:00
|
|
|
.endif
|
|
|
|
|
2003-09-28 05:46:43 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} >= 501109
|
|
|
|
IGNORE= is obsolete. See mount_cd9660(8)
|
|
|
|
.endif
|
|
|
|
|
2003-09-27 03:01:08 +02:00
|
|
|
pre-everything::
|
2001-02-13 14:56:34 +01:00
|
|
|
@if [ ! -d /sys -o ! -d ${SRCPREFIX}/sys ]; then \
|
2003-09-27 03:01:08 +02:00
|
|
|
${ECHO_MSG} "****************************************" ; \
|
|
|
|
${ECHO_MSG} " You need to extract kernel source tree" ; \
|
|
|
|
${ECHO_MSG} " before you build this package..." ; \
|
|
|
|
${ECHO_MSG} "****************************************" ; \
|
2001-02-13 14:56:34 +01:00
|
|
|
${FALSE} ; \
|
|
|
|
fi
|
|
|
|
|
|
|
|
pre-install:
|
|
|
|
@ENCODINGS=`${ENCODINGS}` && \
|
2002-01-29 12:58:52 +01:00
|
|
|
ENCODINGS=`${ECHO_CMD} $${ENCODINGS} | ${SED} 's|,$$||'` && \
|
2001-02-13 14:56:34 +01:00
|
|
|
${SED} "s|%%PREFIX%%|${PREFIX}|g; s|%%ENCODINGS%%|$${ENCODINGS}|" \
|
|
|
|
${PKGDIR}/pkg-message | ${FMT} > ${PKGMESSAGE}
|
|
|
|
${MKDIR} ${PREFIX}/lib/cd9660_unicode
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
@${CAT} ${PKGMESSAGE}
|
|
|
|
|
2003-09-28 05:46:43 +02:00
|
|
|
.include <bsd.port.post.mk>
|