Hello forum,
Here is Makefile:
Although it works for me but I'm not sure about installation path and do-install section. Does ports allowed to create files with ${ECHO_CMD} under file system? Is there any problem with red lines?
Here is Makefile:
Code:
# $FreeBSD$
PORTNAME= logisim
PORTVERSION= 2.7.1
CATEGORIES= cad java
MASTER_SITES= SF/circuit/2.7.x/2.7.1/
DISTNAME= ${PORTNAME}-generic-${PORTVERSION}.jar
[color="Red"]EXTRACT_SUFX=[/color]
EXTRACT_ONLY=
MAINTAINER= javad.kouhi@gmail.com
COMMENT= An educational tool for designing and simulating logic circuits
LICENSE= GPLv2
NO_BUILD= yes
USE_JAVA= yes
JAVA_RUN= yes
JAVA_VERSION= 1.6+
[color="red"]DATADIR= ${PREFIX}/share/${PORTNAME}
PLIST_FILES= %%DATADIR%%/${DISTNAME} \
bin/logisim
PLIST_DIRS= %%DATADIR%%[/color]
do-install:
${MKDIR} ${DATADIR}
${INSTALL_DATA} ${DISTDIR}/${DISTNAME} ${DATADIR}
[color="red"]${ECHO_CMD} -e "#!/bin/sh\n${JAVA} -jar ${PREFIX}/share/${UNIQUENAME}/${DISTNAME}" > ${PREFIX}/bin/logisim
${CHMOD} a+rx ${PREFIX}/bin/logisim[/color]
.include <bsd.port.mk>
Although it works for me but I'm not sure about installation path and do-install section. Does ports allowed to create files with ${ECHO_CMD} under file system? Is there any problem with red lines?