65 lines
1.7 KiB
Makefile
65 lines
1.7 KiB
Makefile
# $OpenBSD: Makefile,v 1.10 2013/03/11 11:20:27 espie Exp $
|
|
|
|
COMMENT = Tcl implementation for the CLR
|
|
|
|
V = 1.0
|
|
P = 4691.37889
|
|
DISTNAME = eagle-${V}
|
|
PKGNAME = ${DISTNAME}-beta26
|
|
CATEGORIES = lang lang/tcl
|
|
HOMEPAGE = http://eagle.to/
|
|
MAINTAINER = Stuart Cassoff <stwo@users.sourceforge.net>
|
|
|
|
# BSD
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=eagle/} \
|
|
${HOMEPAGE:=releases/${V}.${P}/} \
|
|
http://distfiles.nl/
|
|
DISTFILES = EagleBinaryMonoOnUnix${V}.${P}.rar
|
|
EXTRACT_CASES = *.rar) ${LOCALBASE}/bin/unrar x -idq ${DISTDIR}/$$archive;;
|
|
|
|
MODULES = lang/mono
|
|
MODMONO_DEPS = No
|
|
|
|
BUILD_DEPENDS = archivers/unrar
|
|
RUN_DEPENDS = ${MODMONO_RUN_DEPENDS}
|
|
TEST_DEPENDS=${MODMONO_RUN_DEPENDS}
|
|
|
|
TEST_IS_INTERACTIVE = X11
|
|
|
|
NO_BUILD = Yes
|
|
WRKSRC = ${WRKDIR}/Eagle
|
|
|
|
EAGLE_DIR = libdata/Eagle
|
|
EAGLE_INS_DIR = ${PREFIX}/${EAGLE_DIR}
|
|
EAGLE_BIN_DIR = ${EAGLE_INS_DIR}/bin
|
|
EAGLE_LIB_DIR = ${EAGLE_INS_DIR}/lib/Eagle${V}
|
|
EAGLE_BIN = ${PREFIX}/bin/eagle
|
|
|
|
# Some tests are too timing-sensitive to succeed everywhere so don't run them
|
|
EAGLE_TEST_FLAGS = -notFile 'benchmark.eagle delayout.eagle perf*.eagle'
|
|
|
|
do-install:
|
|
${INSTALL_DATA_DIR} ${EAGLE_BIN_DIR} ${EAGLE_LIB_DIR}
|
|
.for SRC GLOB DEST in \
|
|
bin * ${EAGLE_BIN_DIR} \
|
|
lib/Eagle${V} * ${EAGLE_LIB_DIR} \
|
|
. license.terms ${EAGLE_INS_DIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/${SRC}/${GLOB} ${DEST}
|
|
.endfor
|
|
echo '#! /bin/sh' > ${EAGLE_BIN}
|
|
echo 'exec mono ${TRUEPREFIX}/${EAGLE_DIR}/bin/EagleShell.exe $${1+"$$@"}' >> ${EAGLE_BIN}
|
|
chown ${BINOWN}:${BINGRP} ${EAGLE_BIN}
|
|
chmod ${BINMODE} ${EAGLE_BIN}
|
|
|
|
do-test:
|
|
${SETENV} ${MAKE_ENV} ${ALL_TEST_FLAGS} \
|
|
${LOCALBASE}/bin/mono ${WRKSRC}/bin/EagleShell.exe \
|
|
-preInitialize 'set test_log {}' \
|
|
-file ${WRKSRC}/Tests/all.eagle \
|
|
${EAGLE_TEST_FLAGS}
|
|
|
|
.include <bsd.port.mk>
|