-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
Copy pathPortfile
55 lines (43 loc) · 2.09 KB
/
Portfile
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
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup github 1.0
github.setup eggheads eggdrop 1.9.5 v
revision 0
checksums rmd160 463624131c92038bd65a6ae86d4fa15cc886da03 \
sha256 e26918ea8a64d9857579c5b60c661a337f20773edd83086b356525beb581736a \
size 2109996
github.tarball_from archive
license GPL-2+
set branch [join [lrange [split ${version} .] 0 1] .]
categories irc
maintainers nomaintainer
description Eggdrop is the world's most popular Internet Relay Chat (IRC) bot.
long_description ${description}
homepage https://www.eggheads.org
github.tarball_from releases
master_sites-append https://ftp.eggheads.org/pub/eggdrop/source/${branch}/
depends_lib path:lib/libssl.dylib:openssl \
port:tcl \
port:zlib
configure.args --enable-tls \
--with-sslinc=${prefix}/include \
--with-ssllib=${prefix}/lib \
--with-tcl=${prefix}/lib
post-configure {
system -W ${worksrcpath} "${build.cmd} config"
}
# ld: duplicate symbol dyld_stub_binding_helper in /usr/lib/bundle1.o and /usr/lib/dylib1.10.5.o
# https://github.com/eggheads/eggdrop/issues/1662
patchfiles-append patch-unbreak-linking.diff
build.target eggdrop
set eggdest libexec/eggdrop
destroot.destdir DEST=${destroot}${prefix}/${eggdest}
post-destroot {
ln -s ../${eggdest}/eggdrop-${version} ${destroot}${prefix}/bin/eggdrop
system "gzip -9 ${destroot}${prefix}/${eggdest}/doc/man1/eggdrop.1"
ln -s ../../../${eggdest}/doc/man1/eggdrop.1.gz ${destroot}${prefix}/share/man/man1
move ${destroot}${prefix}/${eggdest}/eggdrop.conf ${destroot}${prefix}/${eggdest}/eggdrop.conf.sample
}
platform darwin 8 {
configure.cflags-append "-DBIND_8_COMPAT"
}