blob: 9846dabb163fa00096763f7007ee111d942c6ab9 (
plain)
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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
|
# Created by: James FitzGibbon <jfitz@FreeBSD.org>
# $FreeBSD$
PORTNAME= Tk
PORTVERSION= 804.031
PORTREVISION= 1
CATEGORIES= x11-toolkits tk perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
MAINTAINER= perl@FreeBSD.org
COMMENT= Re-port of a perl5 interface to Tk8.4
LIB_DEPENDS= jpeg.11:${PORTSDIR}/graphics/jpeg \
png15:${PORTSDIR}/graphics/png
OPTIONS_DEFINE= XFT
OPTIONS_DEFAULT= XFT
XFT_DESC= Client-side fonts via libXft
CONFIGURE_ARGS= X11INC=${LOCALBASE}/include X11LIB=${LOCALBASE}/lib
MAKE_JOBS_UNSAFE= yes
USES= perl5
USE_PERL5= configure
USE_XORG= x11
MAN1= ptked.1 \
ptksh.1 \
tkjpeg.1 \
widget.1
MAN3= Tie::Watch.3 \
Tk.3 \
Tk::804delta.3 \
Tk::Adjuster.3 \
Tk::Animation.3 \
Tk::Balloon.3 \
Tk::Bitmap.3 \
Tk::BrowseEntry.3 \
Tk::Button.3 \
Tk::Canvas.3 \
Tk::Checkbutton.3 \
Tk::Clipboard.3 \
Tk::CmdLine.3 \
Tk::ColorEditor.3 \
Tk::Compound.3 \
Tk::ConfigSpecs.3 \
Tk::DItem.3 \
Tk::Derived.3 \
Tk::Dialog.3 \
Tk::DialogBox.3 \
Tk::DirTree.3 \
Tk::DragDrop::Common.3 \
Tk::DragDrop::SunConst.3 \
Tk::DropSite.3 \
Tk::Entry.3 \
Tk::Error.3 \
Tk::Eventloop.3 \
Tk::FBox.3 \
Tk::FileSelect.3 \
Tk::Font.3 \
Tk::Frame.3 \
Tk::HList.3 \
Tk::IO.3 \
Tk::IconList.3 \
Tk::Image.3 \
Tk::InputO.3 \
Tk::Internals.3 \
Tk::JPEG.3 \
Tk::LabFrame.3 \
Tk::Label.3 \
Tk::Labelframe.3 \
Tk::Listbox.3 \
Tk::MainWindow.3 \
Tk::Menu.3 \
Tk::Menu::Item.3 \
Tk::Menubutton.3 \
Tk::Message.3 \
Tk::MsgBox.3 \
Tk::Mwm.3 \
Tk::NoteBook.3 \
Tk::Optionmenu.3 \
Tk::PNG.3 \
Tk::Pane.3 \
Tk::Panedwindow.3 \
Tk::Photo.3 \
Tk::Pixmap.3 \
Tk::Popup.3 \
Tk::ProgressBar.3 \
Tk::ROText.3 \
Tk::Radiobutton.3 \
Tk::Reindex.3 \
Tk::Scale.3 \
Tk::Scrollbar.3 \
Tk::Scrolled.3 \
Tk::Spinbox.3 \
Tk::Submethods.3 \
Tk::TList.3 \
Tk::Table.3 \
Tk::Tcl-perl.3 \
Tk::Text.3 \
Tk::TextUndo.3 \
Tk::Tiler.3 \
Tk::TixGrid.3 \
Tk::Toplevel.3 \
Tk::Trace.3 \
Tk::Tree.3 \
Tk::UserGuide.3 \
Tk::Widget.3 \
Tk::WidgetDemo.3 \
Tk::WinPhoto.3 \
Tk::Wm.3 \
Tk::X.3 \
Tk::X11Font.3 \
Tk::Xrm.3 \
Tk::after.3 \
Tk::bind.3 \
Tk::bindtags.3 \
Tk::callbacks.3 \
Tk::chooseColor.3 \
Tk::chooseDirectory.3 \
Tk::composite.3 \
Tk::demos::widget_lib::slide.3 \
Tk::demos::widget_lib::trace2.3 \
Tk::event.3 \
Tk::exit.3 \
Tk::fileevent.3 \
Tk::focus.3 \
Tk::form.3 \
Tk::getOpenFile.3 \
Tk::grab.3 \
Tk::grid.3 \
Tk::mega.3 \
Tk::messageBox.3 \
Tk::option.3 \
Tk::options.3 \
Tk::overview.3 \
Tk::pTk.3 \
Tk::pack.3 \
Tk::palette.3 \
Tk::place.3 \
Tk::selection.3 \
Tk::send.3 \
Tk::tixWm.3 \
Tk::tkvars.3 \
Tk::widgets.3
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MXFT}
CONFIGURE_ARGS= XFT=1
USE_XORG+= xft
.else
CONFIGURE_ARGS= XFT=0
.endif
post-patch:
@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/JPEG/Makefile.PL \
${WRKSRC}/PNG/Makefile.PL \
${WRKSRC}/pTk/Makefile.PL
post-configure:
@${REINPLACE_CMD} \
-e '/^CC = / s|.*|CC = ${CC}|' \
-e '/^CCFLAGS = / s|.*|CCFLAGS = ${CFLAGS}|' \
-e '/^LD = / s|.*|LD = ${CC} ${CFLAGS} ${LDFLAGS}|' \
-e '/^FULL_AR = / s|.*|FULL_AR = ${AR}|' \
`${FIND} ${WRKSRC} -name Makefile`
.include <bsd.port.mk>
|