aboutsummaryrefslogtreecommitdiffstats
path: root/databases/mysac/Makefile
blob: 4c738d5f10c532156f73428694adc342e0fab387 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Created by: Jake Smith <jake@xz.cx>
# $FreeBSD$

PORTNAME=   mysac
PORTVERSION=    1.1.1
PORTREVISION=   1
CATEGORIES= databases
MASTER_SITES=   http://www.arpalert.org/src/ \
        http://xz.cx/downloads/mysac/

MAINTAINER= jake@xz.cx
COMMENT=    MySAC: MySQL Simple Asynchronous Client

USE_LDCONFIG=   yes
USE_MYSQL=  yes

CFLAGS+=    -I${LOCALBASE}/include
LDFLAGS+=   -I${LOCALBASE}/lib

PLIST_FILES=    lib/libmysac.so \
        lib/libmysac.so.0 \
        lib/libmysac-static.a \
        include/mysac.h

pre-build:
    ${TOUCH} ${WRKSRC}/make.deps

do-install:
    ${INSTALL_LIB} ${WRKSRC}/libmysac.so \
        ${STAGEDIR}${PREFIX}/lib/libmysac.so
    ${LN} -sf libmysac.so ${STAGEDIR}${PREFIX}/lib/libmysac.so.0
    ${INSTALL_DATA} ${WRKSRC}/libmysac-static.a ${STAGEDIR}${PREFIX}/lib/libmysac-static.a
    ${INSTALL_DATA} ${WRKSRC}/mysac.h ${STAGEDIR}${PREFIX}/include/mysac.h

.include <bsd.port.pre.mk>

.if ${ARCH} == "ia64" || ${ARCH} == "powerpc" || ${ARCH} == "sparc64"
BROKEN=     Does not compile on ia64, powerpc, or sparc64
.endif

.include <bsd.port.post.mk>