freebsd-ports/databases/mariadb-scripts/Makefile
Mathieu Arnold 21a283f3be Remove UNIQUENAME and LATEST_LINK.
UNIQUENAME was never unique, it was only used by USE_LDCONFIG and now,
we won't have conflicts there.

Use PKGBASE instead of LATEST_LINK in PKGLATESTFILE, the *only* consumer
is pkg-devel, and it works just fine without LATEST_LINK as pkg-devel
has the correct PKGNAME anyway.

Now that UNIQUENAME is gone, OPTIONSFILE is too. (it's been called
OPTIONS_FILE now.)

Reviewed by:	antoine, bapt
Exp-run by:	antoine
Sponsored by:	Absolight
Differential Revision:	https://reviews.freebsd.org/D3336
2015-08-17 14:20:40 +00:00

34 lines
979 B
Makefile

# $FreeBSD$
PORTNAME= mariadb
PKGNAMESUFFIX= 53-scripts
COMMENT= Scripts for mariadb - drop-in replacement for MySQL
LICENSE= GPLv2
USES= perl5
MASTERDIR= ${.CURDIR}/../mariadb-server
MARIADB_SCRIPTS_SLAVE= yes
CONFLICTS= mysql[0-9][0-9]-scripts-* \
mytop-[0-9]*
PATCHDIR= ${.CURDIR}/files
PLIST= ${.CURDIR}/pkg-plist
MANS= msql2mysql.1 mysql_convert_table_format.1 mysql_find_rows.1 \
mysql_fix_extensions.1 mysql_secure_installation.1 \
mysql_setpermission.1 mysql_zap.1 mysqlaccess.1 \
mysqldumpslow.1 mysqlhotcopy.1 mysqld_multi.1
EXTRA_PATCHES= ${MASTERDIR}/files/patch-Makefile.in ${MASTERDIR}/files/patch-man__Makefile.in
MDB_SCRIPTS_SUBDIRS= scripts @man_dirs@
post-patch:
@${REINPLACE_CMD} -e "s|%%SUBDIRS%%|${MDB_SCRIPTS_SUBDIRS}|" ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e "s|%%MANS%%|${MANS}|" ${WRKSRC}/man/Makefile.in
@${REINPLACE_CMD} -e "s|^\(install-man: install-man1\).*|\1|" ${WRKSRC}/man/Makefile.in
.include "${MASTERDIR}/Makefile"