aboutsummaryrefslogtreecommitdiffstats
path: root/palm/coldsync/Makefile
blob: 849b83e89105fecc944812afbaaebc78f6fc2327 (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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# New ports collection makefile for:    coldsync
# Date created:     27 January 2000
# Whom:         Andrew Arensburger <arensb+freebsd-ports@ooblick.com>
#
# $FreeBSD$
#

PORTNAME=   coldsync
PORTVERSION=    2.2.5
PORTREVISION=   6
CATEGORIES= palm comms
MASTER_SITES=   http://www.coldsync.org/download/

MAINTAINER= arensb+freebsd-ports@ooblick.com
COMMENT=    Synchronize a PalmPilot with a Unix workstation

.if defined(WITHOUT_NLS)
CONFIGURE_ARGS+=    --without-i18n
PLIST_SUB+= NLS="@comment "
.else
CONFIGURE_ARGS+=    --with-i18n
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
.endif

REINPLACE_ARGS= -i "" -E

USE_LDCONFIG=   yes

GNU_CONFIGURE=  yes

MAN3=       libpconn.3 DlpAddSyncLogEntry.3 DlpCallApplication.3 \
        DlpCleanUpDataBase.3 DlpDeleteRecord.3 DlpEndOfSync.3 \
        DlpGetSysDateTime.3 DlpMoveCategory.3 DlpOpenConduit.3 \
        DlpOpenDB.3 DlpRPC.3 DlpReadAppBlock.3 \
        DlpReadAppPreference.3 DlpReadDBList.3 DlpReadFeature.3 \
        DlpReadNetSyncInfo.3 DlpReadOpenDBInfo.3 \
        DlpReadRecordByID.3 DlpReadRecordIDList.3 \
        DlpReadResourceByIndex.3 DlpReadStorageInfo.3 \
        DlpReadSysInfo.3 DlpReadUserInfo.3 DlpResetRecordIndex.3 \
        DlpResetSyncFlags.3 DlpResetSystem.3 DlpWriteRecord.3 \
        DlpWriteResource.3 PConnClose.3 PConn_bind.3 \
        RDLP_Backlight.3 RDLP_BatteryDialog.3 \
        RDLP_GetOSVersionString.3 RDLP_MemHandleNew.3 \
        RDLP_PluggedIn.3 RDLP_ROMToken.3 new_PConnection.3 \
        time_dlp2palmtime.3 libpdb.3 new_Record.3 \
        new_pdb.3 pdb_AppendRecord.3 pdb_CopyRecord.3 \
        pdb_DeleteRecordByID.3 pdb_FindRecordByID.3 \
        pdb_LoadHeader.3 pdb_Read.3
MAN8=       coldsync.8
MANCOMPRESSED=  no

INFO=       conduits

.include <bsd.port.pre.mk>

CFLAGS+=    -D__BSD_VISIBLE=1
CONFIGURE_ARGS+=    --disable-pedantic --without-perl --with-usb

post-patch:
    ${REINPLACE_CMD} -e 's,udi\.([A-Za-z0-9]+),udi.udi_\1,g;' \
        -e 's,ur\.([A-Za-z0-9]+),ur.ucr_\1,g;' \
        ${WRKSRC}/configure ${WRKSRC}/libpconn/PConnection_usb.c

post-configure:
    ${REINPLACE_CMD} -e 's,-fpic,-fPIC,g' ${WRKSRC}/Make.rules

post-install:
    ${MKDIR} ${PREFIX}/include/pconn
    ${INSTALL_DATA} ${WRKSRC}/include/*.h ${PREFIX}/include/
    ${INSTALL_DATA} ${WRKSRC}/include/pconn/*.h ${PREFIX}/include/pconn/

.include <bsd.port.post.mk>