mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-15 03:14:23 +00:00
798a76bda5
Submitted by: KOT@MATPOCKuH.Ru (maintainer)
46 lines
1.1 KiB
Makefile
46 lines
1.1 KiB
Makefile
# New ports collection makefile for: autocd
|
|
# Date created: 11 Marth 2003
|
|
# Whom: Dmitry Afanasiev <KOT@MATPOCKuH.Ru>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= autocd
|
|
PORTVERSION= 3.02.12b
|
|
CATEGORIES= audio sysutils
|
|
MASTER_SITES= ftp://kot.spb.ru/pub/src/projects/autocd/
|
|
|
|
MAINTAINER= KOT@MATPOCKuH.Ru
|
|
COMMENT= Compact disc control utility
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
|
MAN1= cdctl.1 acdplay.1
|
|
MAN8= autocd.8
|
|
MLINKS= cdctl.1 eject.1 cdctl.1 pause.1
|
|
PLIST_FILES= sbin/autocd bin/acdplay bin/cdctl bin/pause bin/eject
|
|
PORTDOCS= README.rus.html
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
USE_RC_SUBR= yes
|
|
RC_SUFX= .sh
|
|
SED_SCRIPT+= -e '{ s,%%PREFIX%%,${PREFIX},g; s,%%RC_SUBR%%,${RC_SUBR},g; }'
|
|
PLIST_FILES+= etc/rc.d/autocd${RC_SUFX}
|
|
|
|
.if ${OSVERSION} < 400010
|
|
LIB_DEPENDS+= ncurses.5:${PORTSDIR}/devel/ncurses
|
|
.endif
|
|
|
|
post-build:
|
|
@${SED} ${SED_SCRIPT} ${FILESDIR}/autocd.sh >${WRKDIR}/autocd.sh
|
|
|
|
post-install:
|
|
${INSTALL_SCRIPT} ${WRKDIR}/autocd.sh ${PREFIX}/etc/rc.d/autocd${RC_SUFX}
|
|
.if !defined(NOPORTDOCS)
|
|
${MKDIR} ${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/${PORTDOCS} ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.post.mk>
|