diff options
author | miwi <miwi@FreeBSD.org> | 2013-02-07 22:50:39 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2013-02-07 22:50:39 +0800 |
commit | 18feecf11aa7aebf13c924e5725f6b6bc6e1ca6f (patch) | |
tree | 47b47e0d2b191e5727424281d92888708df74205 /databases | |
parent | 206e2fcce10248465a2aec827354527a120901eb (diff) | |
download | freebsd-ports-gnome-18feecf11aa7aebf13c924e5725f6b6bc6e1ca6f.tar.gz freebsd-ports-gnome-18feecf11aa7aebf13c924e5725f6b6bc6e1ca6f.tar.zst freebsd-ports-gnome-18feecf11aa7aebf13c924e5725f6b6bc6e1ca6f.zip |
- Fix build with clang
- Trim header
PR: 175024
Submitted by: Ports Fury
Diffstat (limited to 'databases')
-rw-r--r-- | databases/typhoon/Makefile | 34 |
1 files changed, 15 insertions, 19 deletions
diff --git a/databases/typhoon/Makefile b/databases/typhoon/Makefile index 57b01d09e86b..c73ee347ae04 100644 --- a/databases/typhoon/Makefile +++ b/databases/typhoon/Makefile @@ -1,19 +1,14 @@ -# New ports collection makefile for: typhoon -# Date created: Wed Dec 11 15:16:19 CST 1996 -# Whom: erich@FreeBSD.org -# +# Created by: erich@FreeBSD.org # $FreeBSD$ -# PORTNAME= typhoon PORTVERSION= 1.10.3 CATEGORIES= databases -MASTER_SITES= ${MASTER_SITE_SUNSITE} -MASTER_SITE_SUBDIR= libs/db +MASTER_SITES= SUNSITE/libs/db EXTRACT_SUFX= .tgz MAINTAINER= ports@FreeBSD.org -COMMENT= A relational database library +COMMENT= Relational database library HAS_CONFIGURE= yes USE_LDCONFIG= yes @@ -26,21 +21,22 @@ MAN3= d_close.3 d_crget.3 d_crread.3 d_crset.3 d_dbdpath.3 d_dbfpath.3 \ d_keyread.3 d_open.3 d_recfrst.3 d_reclast.3 d_recnext.3 d_recprev.3 \ d_recread.3 d_recwrite.3 d_setfiles.3 -pre-patch: - @${REINPLACE_CMD} -e 's,<malloc.h>,<stdlib.h>,' \ - ${WRKSRC}/util/dbdview.c +post-patch: + @${REINPLACE_CMD} -e \ + 's|<malloc.h>|<stdlib.h>| ; \ + s|^void main|int main|' ${WRKSRC}/util/dbdview.c post-install: -.for file in ${MAN1} - ${INSTALL_MAN} ${WRKSRC}/man/${file} ${PREFIX}/man/man1 +.for i in ${MAN1} + (cd ${WRKSRC}/man && ${INSTALL_MAN} ${i} ${MAN1PREFIX}/man/man1) .endfor -.for file in ${MAN3} - ${INSTALL_MAN} ${WRKSRC}/man/${file} ${PREFIX}/man/man3 +.for i in ${MAN3} + (cd ${WRKSRC}/man && ${INSTALL_MAN} ${i} ${MAN3PREFIX}/man/man3) .endfor - @${MKDIR} ${PREFIX}/share/typhoon - ${INSTALL_DATA} ${WRKSRC}/man/manual.asc ${PREFIX}/share/typhoon -.for file in environ.h typhoon.h - ${INSTALL_DATA} ${WRKSRC}/include/${file} ${PREFIX}/include + @${MKDIR} ${DATADIR} + (cd ${WRKSRC}/man && ${INSTALL_DATA} manual.asc ${DATADIR}) +.for i in environ.h typhoon.h + (cd ${WRKSRC}/include && ${INSTALL_DATA} ${i} ${PREFIX}/include) .endfor .include <bsd.port.mk> |