aboutsummaryrefslogtreecommitdiffstats
path: root/cad/logisim/Makefile
blob: 431971f197557bb5ea4733246a7e9d0d31bcf869 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# $FreeBSD$

PORTNAME=   logisim
PORTVERSION=    2.7.1
CATEGORIES= cad java
MASTER_SITES=   SF/circuit/2.7.x/2.7.1/
DISTNAME=   ${PORTNAME}-generic-${PORTVERSION}
EXTRACT_SUFX=   .jar
EXTRACT_ONLY=

MAINTAINER= javad.kouhi@gmail.com
COMMENT=    Educational tool for designing and simulating logic circuits

LICENSE=    GPLv2

NO_BUILD=   yes
USE_JAVA=   yes
JAVA_RUN=   yes
JAVA_VERSION=   1.6+

PLIST_FILES=    ${DATADIR_REL}/${PORTNAME}-generic-${PORTVERSION}${EXTRACT_SUFX} \
        bin/${PORTNAME}
PLIST_DIRS= %%DATADIR%%

DESKTOP_ENTRIES="Logisim" "${COMMENT}" "" "${PORTNAME}" "" false

do-extract:
    ${MKDIR} ${WRKSRC}
    ${CP} ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX} ${WRKSRC}
    ${ECHO_CMD} -e "#!/bin/sh\nexec ${JAVA} -jar ${DATADIR}/${DISTNAME}${EXTRACT_SUFX}" > ${WRKSRC}/${PORTNAME}

do-install:
    ${MKDIR} ${STAGEDIR}${DATADIR}
    ${INSTALL_DATA} ${WRKSRC}/${DISTNAME}${EXTRACT_SUFX} ${STAGEDIR}${DATADIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin

.include <bsd.port.mk>