freebsd-ports/databases/sqldeveloper/Makefile
Thierry Thomas 27773daa4f Oracle SQL Developer is a free graphical tool for database development. With
SQL Developer, you can browse database objects, run SQL statements and SQL
scripts, and edit and debug PL/SQL statements. You can also run any number of
provided reports, as well as create and save your own. SQL Developer enhances
productivity and simplifies your database development tasks.

SQL Developer can connect to any Oracle Database version >= 9.2.0.1 and MySQL
database version >= 3.0.

WWW: http://www.oracle.com/technology/software/products/sql/index.html

PR:		ports/119756
Submitted by:	José García Juanino <jjuanino at gmail.com>
2008-04-05 20:26:22 +00:00

88 lines
2.7 KiB
Makefile

# New ports collection makefile for: sqldeveloper
# Date created: 16 January 2008
# Whom: jjuanino@gmail.com
#
# $FreeBSD$
#
PORTNAME= sqldeveloper
PORTVERSION= 1.2.1.3213
CATEGORIES= databases java
MASTER_SITES= #http://www.oracle.com/technology/software/products/sql/index.html
PKGNAMESUFFIX= -no-jre
DISTNAME= ${PORTNAME}-${PORTVERSION}${PKGNAMESUFFIX}
DIST_SUBDIR= oracle
MAINTAINER= jjuanino@gmail.com
COMMENT= Graphical tool for database development
RUN_DEPENDS= classpath:${PORTSDIR}/java/javavmwrapper
USE_ZIP= yes
USE_JAVA= yes
JAVA_VERSION= 1.5+
NO_BUILD= yes
RESTRICTED= Packaging prohibited by Oracle license
DATADIR= ${JAVASHAREDIR}/${PORTNAME}
WRKSRC= ${WRKDIR}/${PORTNAME}
SUB_FILES= pkg-message
.include <bsd.port.pre.mk>
.if !exists(${DISTDIR}/${DIST_SUBDIR}/${DISTNAME}${EXTRACT_SUFX})
ECHO_MSG= ${PRINTF} %b
IGNORE+= \n\n-=< MARKED AS IGNORED: >=-\n
IGNORE+= \n
IGNORE+= Due to Oracle license restrictions, you must fetch the source \n
IGNORE+= distribution manually. Please access \n
IGNORE+= http://www.oracle.com/technology/software/products/sql/index.html \n
IGNORE+= with a web browser and follow the link for the \n
IGNORE+= \"${DISTFILES}\". \n
IGNORE+= You will be required to register and log in, \n
IGNORE+= but you can create an account on that page. \n
IGNORE+= After registration and accepting the Oracle License, \n
IGNORE+= download the distribution file, \n ${DISTFILES}, \n
IGNORE+= into ${DISTDIR}/${DIST_SUBDIR}/ \n
IGNORE+= and then restart this installation\n\n
.endif
do-install:
@${REINPLACE_CMD} -e 's|%DATADIR%|${DATADIR}|' \
${WRKSRC}/sqldeveloper.sh \
${WRKSRC}/sqlcli
@${REINPLACE_CMD} -e 's|/bin/bash|/bin/sh|' \
${WRKSRC}/sqldeveloper.sh \
${WRKSRC}/sqlcli \
${WRKSRC}/ide/bin/launcher.sh \
${WRKSRC}/ide/bin/product-launcher.template \
${WRKSRC}/sqldeveloper/bin/sqldeveloper
@${ECHO_MSG} -n ">> Installing scripts..."
@${INSTALL_SCRIPT} ${WRKSRC}/sqldeveloper.sh ${PREFIX}/bin/sqldeveloper
@${INSTALL_SCRIPT} ${WRKSRC}/sqlcli ${PREFIX}/bin/sqlcli
@${ECHO_MSG} " [ DONE ]"
.for d in ide j2ee jdbc jdev jlib lib rdbms sqldeveloper
@${ECHO_MSG} -n ">> Installing data directory '${d}'..."
@cd ${WRKSRC} && ${FIND} ${d} -type d -exec ${MKDIR} ${DATADIR}/\{} \;
@cd ${WRKSRC} && ${FIND} ${d} -type f \
-not -name "*.orig" \
-not -name "*.exe" \
-not -name "*.bat" \
-not -name "*.bak" \
-exec ${INSTALL_DATA} \{} ${DATADIR}/\{} \;
@${ECHO_MSG} " [ DONE ]"
.endfor
@${ECHO_MSG} -n ">> Installing icon ..."
@${INSTALL_DATA} ${WRKSRC}/icon.png ${DATADIR}/icon.png
@${ECHO_MSG} " [ DONE ]"
post-install:
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>