freebsd-ports/cad/linux-eagle/Makefile
Boris Samorodov 0263b9d868 Welcome to the new linux ports infrastructure which allows using
both current (fc4) and future linux (f8) distributions at one
ports tree.

The patch contains full changes to ports/Mk files and all ports involved.
But only infrastructure is changed. The resulting packages are the same as
before. Hence no need to bump PORTREVISIONs.

The idea was taken from bsd.gnome.mk and others.

More than 130 ports are switched to follow a new linux infrastructure
introduced by changes to bsd.port.mk, bsd.linux-rpm.mk and a new
bsd.linux-apps.mk.

Thanks for all who was involved and helped me with this work.
And help from Alexander Leidinger was incredible.

Other changes are coming. Stay tuned!

PR:		ports/132510
Submitted by:	bsam (me)
Exp-run by:	portmgr (pav)
2009-03-19 17:28:51 +00:00

57 lines
1.5 KiB
Makefile

# New ports collection makefile for: linux-eagle
# Date created: 29 December 2001
# Whom: Maxim Sobolev <sobomax@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= linux-eagle
EAGLEVERSION?= 4.16r2
EAGLELANG?= eng
PORTVERSION= ${EAGLEVERSION:S/r/./}
PORTREVISION?= 0
CATEGORIES?= cad linux
MASTER_SITES= ftp://ftp.cadsoft.de/pub/program/${EAGLEVERSION}/
DISTNAME= ${PORTNAME:S/linux-//}-lin-${EAGLELANG}-${EAGLEVERSION}
EXTRACT_SUFX= .tgz
MAINTAINER?= riggs@rrr.de
COMMENT?= An easy to use, yet powerful tool for designing printed circuit boards
CONFLICTS?= de-linux-eagle-[0-9]*
ONLY_FOR_ARCHS= i386 amd64
WRKSRC= ${WRKDIR}/${PORTNAME:S/linux-//}-lin-${EAGLELANG}-${EAGLEVERSION}
DATADIR= ${PREFIX}/share/${PORTNAME:S/linux-//}
RESTRICTED= Usage permitted for non-commercial purposes only
NO_CDROM= Sale for profit is not permitted
USE_LINUX= yes
USE_LINUX_APPS= xorglibs
NO_BUILD= yes
PKGMESSAGE= ${WRKDIR}/pkg-message
MAN1= eagle.1
CPIO?= /usr/bin/cpio --quiet -pdum -R
do-install:
@${MKDIR} ${DATADIR}
@ cd ${WRKSRC} && ${FIND} * -type f -print | ${CPIO} ${BINOWN}:${BINGRP} ${DATADIR}
@ cd ${DATADIR} && ${FIND} * -type d -print | ${XARGS} ${CHMOD} 0755
@${INSTALL_MAN} ${DATADIR}/man/eagle.1 ${PREFIX}/man/man1
@${SED} -e "s:%%DATADIR%%:${DATADIR}:g" ${FILESDIR}/eagle.sh > ${PREFIX}/bin/eagle
@${CHMOD} 0555 ${PREFIX}/bin/eagle
post-install:
@${SED} -e "s:%%PREFIX%%:${PREFIX}:g" ${PKGDIR}/pkg-message > \
${PKGMESSAGE}
.if !defined(BATCH)
@${ECHO_MSG}
@${CAT} ${PKGMESSAGE}
@${ECHO_MSG}
.endif
.include <bsd.port.mk>