You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.1 KiB
48 lines
1.1 KiB
2 years ago
|
# -*-mode: makefile-*-
|
||
|
# Created by: slavek.banko@axis.cz
|
||
|
# $FreeBSD$
|
||
|
#
|
||
|
# TDE port map: dependencies/tqt3-mysql-plugin > databases/tqt3-mysql-plugin
|
||
|
|
||
|
PORTSDIR?=/usr/ports
|
||
|
.include <${PORTSDIR}/Mk/bsd.trinity.mk>
|
||
|
|
||
|
PORTNAME= tqt3-${DB}-plugin
|
||
|
COMMENT= TQt3 MySQL database plugin
|
||
|
TDE_PREVERSION=
|
||
|
MASTER_SITE_SUBDIR= t/tqt-x11-free
|
||
|
DISTNAME= tqt-x11-free_${TDE_VERSION}${TDE_PREVERSION:C/(~(pre|r|s)[0-9]*).*/\1/1}
|
||
|
DISTSRC= tqt3-trinity-${TDE_VERSION}${TDE_PREVERSION}
|
||
|
PORTREVISION= 0
|
||
|
CATEGORIES= databases
|
||
|
DIST_SUBDIR= TDE/dependencies
|
||
|
PREFIX= ${LOCALBASE}
|
||
|
|
||
|
|
||
|
DB= mysql
|
||
|
PLUGIN= plugins/src/sqldrivers/${DB}
|
||
|
DRIVER= src/sql/drivers/${DB}
|
||
|
|
||
|
# For TQt3 is used FreeBSD make
|
||
|
# Remove gmake from USES
|
||
|
USES=
|
||
|
USE_MYSQL= yes
|
||
|
|
||
|
EXTRACT_AFTER_ARGS+= \
|
||
|
${EXTRACT_BASE}${PLUGIN} \
|
||
|
${EXTRACT_BASE}${DRIVER} \
|
||
|
${EXTRACT_BASE}src/sql/drivers/cache
|
||
|
|
||
|
BUILD_DEPENDS+= tqmake:${PORTSDIR}/devel/tqmake
|
||
|
|
||
|
LIB_DEPENDS+= libtqt-mt.so:${PORTSDIR}/x11-toolkits/tqt3
|
||
|
|
||
|
MAKEFILE= ${FILESDIR}/Makefile.bsd
|
||
|
|
||
|
MAKE_ENV+= DB="${DB}" DRIVER="${DRIVER}" PLUGIN="${PLUGIN}" \
|
||
|
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
|
||
|
PTHREAD_LIBS="${PTHREAD_LIBS}"
|
||
|
PLIST_SUB= DB=${DB}
|
||
|
|
||
|
.include <bsd.port.mk>
|